From 273a859e05c7649c6939528959d88d5f5e1882db Mon Sep 17 00:00:00 2001 From: georg-emg Date: Tue, 21 Jan 2025 11:04:12 +0100 Subject: [PATCH] added workaround for wrong value of __cplusplus in MSVC compiler (#136) --- include/tl/expected.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tl/expected.hpp b/include/tl/expected.hpp index bc085a4..237e4b4 100644 --- a/include/tl/expected.hpp +++ b/include/tl/expected.hpp @@ -109,7 +109,7 @@ struct is_trivially_copy_constructible> : std::false_type {}; std::is_trivially_destructible #endif -#if __cplusplus > 201103L +#if __cplusplus > 201103L || (defined(_MSC_VER) && _MSC_VER >= 1910) #define TL_EXPECTED_CXX14 #endif