From 25176d44cf1640f0744807197cdedb59dd16bda6 Mon Sep 17 00:00:00 2001 From: Georg Schwab Date: Thu, 23 Feb 2023 13:53:11 +0100 Subject: [PATCH] added workaround for wrong value of __cplusplus in MSVC compiler --- 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 7fd6467..b11843c 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