fixed TOML_CONSTEVAL still being broken in MSVC :(

This commit is contained in:
Mark Gillard 2021-06-03 11:05:20 +03:00
parent 1c3957ca20
commit bc6891e1fb
2 changed files with 4 additions and 6 deletions

View File

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

View File

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