From 2ce08717739e9ff4268c82d1157dc40316346602 Mon Sep 17 00:00:00 2001 From: David Dight Date: Sat, 8 Jun 2024 16:55:46 +1000 Subject: [PATCH] msvc type fix 3 --- include/fix8/conjure_enum.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/fix8/conjure_enum.hpp b/include/fix8/conjure_enum.hpp index 65adf4df..74a029ca 100644 --- a/include/fix8/conjure_enum.hpp +++ b/include/fix8/conjure_enum.hpp @@ -749,13 +749,13 @@ 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, ep - lc - 1) }; -#define _chkstr(x) \ +#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()) - _chkstr(type_t); - _chkstr(extype_t0); - _chkstr(extype_t1); - _chkstr(extype_t2); + chkstr0(type_t); + else chkstr0(extype_t0); + else chkstr0(extype_t1); + else chkstr0(extype_t2); } return {}; }