diff --git a/include/tl/expected.hpp b/include/tl/expected.hpp index 06e6dc4..31acb81 100644 --- a/include/tl/expected.hpp +++ b/include/tl/expected.hpp @@ -51,6 +51,12 @@ #define TL_EXPECTED_GCC55 #endif +#ifdef _MSVC_LANG +#define TL_CPLUSPLUS _MSVC_LANG +#else +#define TL_CPLUSPLUS __cplusplus +#endif + #if !defined(TL_ASSERT) //can't have assert in constexpr in C++11 and GCC 4.9 has a compiler bug #if (TL_CPLUSPLUS > 201103L) && !defined(TL_EXPECTED_GCC49) @@ -109,12 +115,6 @@ struct is_trivially_copy_constructible> : std::false_type {}; std::is_trivially_destructible #endif -#ifdef _MSVC_LANG -#define TL_CPLUSPLUS _MSVC_LANG -#else -#define TL_CPLUSPLUS __cplusplus -#endif - #if TL_CPLUSPLUS > 201103L #define TL_EXPECTED_CXX14 #endif