mirror of
https://github.com/marzer/tomlplusplus.git
synced 2025-02-23 18:40:04 +00:00
fixed TOML_CONSTEVAL
still being broken in MSVC :(
This commit is contained in:
parent
1c3957ca20
commit
bc6891e1fb
@ -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
|
||||
|
5
toml.hpp
5
toml.hpp
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user