forked from TartanLlama/optional
Fix macro issue
This commit is contained in:
@@ -60,7 +60,6 @@
|
|||||||
// for non-copyable types
|
// for non-copyable types
|
||||||
#elif (defined(__GNUC__) && __GNUC__ < 8 && \
|
#elif (defined(__GNUC__) && __GNUC__ < 8 && \
|
||||||
!defined(__clang__))
|
!defined(__clang__))
|
||||||
#ifdef _GLIBCXX_VECTOR
|
|
||||||
#ifndef TL_GCC_LESS_8_TRIVIALLY_COPY_CONSTRUCTIBLE_MUTEX
|
#ifndef TL_GCC_LESS_8_TRIVIALLY_COPY_CONSTRUCTIBLE_MUTEX
|
||||||
#define TL_GCC_LESS_8_TRIVIALLY_COPY_CONSTRUCTIBLE_MUTEX
|
#define TL_GCC_LESS_8_TRIVIALLY_COPY_CONSTRUCTIBLE_MUTEX
|
||||||
namespace tl {
|
namespace tl {
|
||||||
@@ -68,12 +67,13 @@ namespace tl {
|
|||||||
template<class T>
|
template<class T>
|
||||||
struct is_trivially_copy_constructible : std::is_trivially_copy_constructible<T>{};
|
struct is_trivially_copy_constructible : std::is_trivially_copy_constructible<T>{};
|
||||||
template<class T, class A>
|
template<class T, class A>
|
||||||
|
#ifdef _GLIBCXX_VECTOR
|
||||||
struct is_trivially_copy_constructible<std::vector<T,A>>
|
struct is_trivially_copy_constructible<std::vector<T,A>>
|
||||||
: std::is_trivially_copy_constructible<T>{};
|
: std::is_trivially_copy_constructible<T>{};
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
#define TL_OPTIONAL_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(T) \
|
#define TL_OPTIONAL_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(T) \
|
||||||
tl::detail::is_trivially_copy_constructible<T>::value
|
tl::detail::is_trivially_copy_constructible<T>::value
|
||||||
|
Reference in New Issue
Block a user