Add vector workaround mutex

This commit is contained in:
Simon Brand
2018-08-22 15:21:31 +01:00
parent 9df8d1be39
commit bf0efe1625

View File

@@ -60,6 +60,8 @@
// for non-copyable types // for non-copyable types
#elif (defined(__GNUC__) && __GNUC__ < 8 && \ #elif (defined(__GNUC__) && __GNUC__ < 8 && \
!defined(__clang__)) !defined(__clang__))
#ifndef 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>
@@ -69,6 +71,7 @@ namespace tl {
: std::is_trivially_copy_constructible<T>{}; : std::is_trivially_copy_constructible<T>{};
} }
} }
#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