Skip to content

Commit

Permalink
msvc type fix 4
Browse files Browse the repository at this point in the history
  • Loading branch information
dakka committed Jun 11, 2024
1 parent 87ca6e0 commit 5c7238e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/fix8/conjure_enum.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -739,10 +739,9 @@ class conjure_type
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 + 1, ep - lc - 2) };
return e1;
#define chkstr0(x) \
if constexpr (constexpr auto ep##x { e1.find(cs::get_spec<sval::anon_str,stype::x>()) }; ep##x != std::string_view::npos) \
return e1.substr(ep##x + cs::get_spec<sval::anon_str,stype::x>().size(), e1.size() - ep##x - cs::get_spec<sval::anon_str,stype::x>().size())
return e1.substr(ep##x + cs::get_spec<sval::anon_str,stype::x>().size(), e1.size() - (ep##x + cs::get_spec<sval::anon_str,stype::x>().size()))
chkstr0(type_t);
else chkstr0(extype_t0);
else chkstr0(extype_t1);
Expand Down

0 comments on commit 5c7238e

Please sign in to comment.