diff --git a/include/fix8/conjure_enum.hpp b/include/fix8/conjure_enum.hpp index 74a029ca..0f4b6e7f 100644 --- a/include/fix8/conjure_enum.hpp +++ b/include/fix8/conjure_enum.hpp @@ -750,8 +750,8 @@ class conjure_type { constexpr std::string_view e1 { from.substr(lc, ep - lc - 1) }; #define chkstr0(x) \ - if constexpr (constexpr auto ep1 { e1.find(cs::get_spec()) }; ep1 != std::string_view::npos) \ - return e1.substr(ep1 + cs::get_spec().size(), e1.size() - ep1 - cs::get_spec().size()) + if constexpr (constexpr auto ep##x { e1.find(cs::get_spec()) }; ep##x != std::string_view::npos) \ + return e1.substr(ep##x + cs::get_spec().size(), e1.size() - ep##x - cs::get_spec().size()) chkstr0(type_t); else chkstr0(extype_t0); else chkstr0(extype_t1);