Skip to content

Commit

Permalink
msvc type fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
dakka committed Jun 6, 2024
1 parent 3fb1daa commit 8de9f9a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/fix8/conjure_enum.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -748,13 +748,13 @@ class conjure_type
return {};
if constexpr (constexpr auto lc { from.find_first_of(cs::get_spec<sval::end,stype::type_t>()) }; lc != std::string_view::npos)
{
constexpr std::string_view e1 { from.substr(lc, ep - lc) };
constexpr std::string_view e1 { from.substr(lc, ep - lc - 1) };
if constexpr (constexpr auto ep1 { e1.find(cs::get_spec<sval::anon_str,stype::type_t>()) }; ep1 != std::string_view::npos)
return e1.substr(ep1, e1.size() - ep1);
return e1.substr(ep1 + cs::get_spec<sval::anon_str,stype::type_t>().size(), e1.size() - ep1 - cs::get_spec<sval::anon_str,stype::type_t>().size());
if constexpr (constexpr auto ep1 { e1.find(cs::get_spec<sval::anon_str,stype::extype_t0>()) }; ep1 != std::string_view::npos)
return e1.substr(ep1, e1.size() - ep1);
return e1.substr(ep1 + cs::get_spec<sval::anon_str,stype::extype_t0>().size(), e1.size() - ep1 - cs::get_spec<sval::anon_str,stype::extype_t0>().size());
if constexpr (constexpr auto ep1 { e1.find(cs::get_spec<sval::anon_str,stype::extype_t1>()) }; ep1 != std::string_view::npos)
return e1.substr(ep1, e1.size() - ep1);
return e1.substr(ep1 + cs::get_spec<sval::anon_str,stype::extype_t1>().size(), e1.size() - ep1 - cs::get_spec<sval::anon_str,stype::extype_t1>().size());
}
return {};
}
Expand Down

0 comments on commit 8de9f9a

Please sign in to comment.