fixed TOML_CONSTEVAL breaking on VS 16.10.0pre2 (closes #93)

https://developercommunity.visualstudio.com/t/Erroneous-C7595-error-with-consteval-in/1404234
This commit is contained in:
Mark Gillard 2021-04-21 15:36:25 +03:00
parent 7a4993029e
commit 14682c1ece
2 changed files with 6 additions and 2 deletions

View File

@ -459,7 +459,9 @@ is no longer necessary.
#define TOML_NO_DEFAULT_CASE default: TOML_UNREACHABLE
#ifdef __cpp_consteval
#if defined(__cpp_consteval) \
&& (!defined(_MSC_FULL_VER) || _MSC_FULL_VER != 192930031)
// https://developercommunity.visualstudio.com/t/Erroneous-C7595-error-with-consteval-in/1404234
#define TOML_CONSTEVAL consteval
#else
#define TOML_CONSTEVAL constexpr

View File

@ -470,7 +470,9 @@ is no longer necessary.
#define TOML_NO_DEFAULT_CASE default: TOML_UNREACHABLE
#ifdef __cpp_consteval
#if defined(__cpp_consteval) \
&& (!defined(_MSC_FULL_VER) || _MSC_FULL_VER != 192930031)
// https://developercommunity.visualstudio.com/t/Erroneous-C7595-error-with-consteval-in/1404234
#define TOML_CONSTEVAL consteval
#else
#define TOML_CONSTEVAL constexpr