mirror of
https://github.com/TartanLlama/expected.git
synced 2025-08-03 19:04:29 +02:00
Only include vector workaround if vector has been included
This commit is contained in:
@@ -75,6 +75,7 @@
|
|||||||
// 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 {
|
||||||
@@ -87,6 +88,7 @@ namespace tl {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#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