diff --git a/include/figcone/configreader.h b/include/figcone/configreader.h index 4112b86..98dca44 100644 --- a/include/figcone/configreader.h +++ b/include/figcone/configreader.h @@ -397,7 +397,7 @@ class ConfigReader { template void loadStructure(TCfg& cfg) { -#if __cplusplus < 202002L +#if (defined(_MSVC_LANG) && _MSVC_LANG < 202002L) || (!defined(_MSVC_LANG) && __cplusplus < 202002L) static_assert( sfun::dependent_false, "Static reflection interface requires C++20. Inherit from figcone::Config to use runtime reflection "