mirror of
https://github.com/TartanLlama/expected.git
synced 2025-09-26 04:50:55 +02:00
TL_CPLUSPLUS was being used before being defined (#175)
Co-authored-by: Jody Hagins <coachhagins@gmail.com>
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user