diff --git a/include/fix8/conjure_enum.hpp b/include/fix8/conjure_enum.hpp index 770b569b..a44e3e25 100644 --- a/include/fix8/conjure_enum.hpp +++ b/include/fix8/conjure_enum.hpp @@ -739,6 +739,7 @@ class conjure_type if constexpr (constexpr auto lc { from.find_first_of(cs::get_spec()) }; lc != std::string_view::npos) { constexpr std::string_view e1 { from.substr(lc + 1, ep - lc - 1) }; + return e1; #define chkstr0(x) \ 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())