From d846265e9f0ae4ffa3eda4b053ff483e0412ceeb Mon Sep 17 00:00:00 2001 From: kamchatka-volcano Date: Sun, 14 Jan 2024 19:51:49 +0300 Subject: [PATCH] -fixed standard version check --- include/figcone/configreader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "