From 13a0be517b3706bbec542ad9e137c426d286f029 Mon Sep 17 00:00:00 2001 From: David Dight Date: Sat, 8 Jun 2024 16:57:38 +1000 Subject: [PATCH] msvc type fix 3 --- include/fix8/conjure_enum.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);