forked from TartanLlama/expected
Fix #36
This commit is contained in:
@@ -75,20 +75,20 @@
|
|||||||
// 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 {
|
||||||
namespace detail {
|
namespace detail {
|
||||||
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>{};
|
||||||
|
#ifdef _GLIBCXX_VECTOR
|
||||||
template<class T, class A>
|
template<class T, class A>
|
||||||
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_EXPECTED_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(T) \
|
#define TL_EXPECTED_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(T) \
|
||||||
tl::detail::is_trivially_copy_constructible<T>
|
tl::detail::is_trivially_copy_constructible<T>
|
||||||
|
Reference in New Issue
Block a user