TL_CPLUSPLUS was being used before being defined (#175)

Co-authored-by: Jody Hagins <coachhagins@gmail.com>
This commit is contained in:
Jody Hagins
2025-08-28 10:39:13 -04:00
committed by GitHub
parent ea916f3962
commit 2089ecb887

View File

@@ -51,6 +51,12 @@
#define TL_EXPECTED_GCC55 #define TL_EXPECTED_GCC55
#endif #endif
#ifdef _MSVC_LANG
#define TL_CPLUSPLUS _MSVC_LANG
#else
#define TL_CPLUSPLUS __cplusplus
#endif
#if !defined(TL_ASSERT) #if !defined(TL_ASSERT)
//can't have assert in constexpr in C++11 and GCC 4.9 has a compiler bug //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) #if (TL_CPLUSPLUS > 201103L) && !defined(TL_EXPECTED_GCC49)
@@ -109,12 +115,6 @@ struct is_trivially_copy_constructible<std::vector<T, A>> : std::false_type {};
std::is_trivially_destructible<T> std::is_trivially_destructible<T>
#endif #endif
#ifdef _MSVC_LANG
#define TL_CPLUSPLUS _MSVC_LANG
#else
#define TL_CPLUSPLUS __cplusplus
#endif
#if TL_CPLUSPLUS > 201103L #if TL_CPLUSPLUS > 201103L
#define TL_EXPECTED_CXX14 #define TL_EXPECTED_CXX14
#endif #endif