From b53059c63d82ff940f5660c724ad3c2864cd8670 Mon Sep 17 00:00:00 2001 From: Simon Brand Date: Thu, 6 Sep 2018 09:34:05 +0100 Subject: [PATCH] Fix macro issue --- tl/optional.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tl/optional.hpp b/tl/optional.hpp index 3c05511..356254e 100644 --- a/tl/optional.hpp +++ b/tl/optional.hpp @@ -60,7 +60,6 @@ // for non-copyable types #elif (defined(__GNUC__) && __GNUC__ < 8 && \ !defined(__clang__)) -#ifdef _GLIBCXX_VECTOR #ifndef TL_GCC_LESS_8_TRIVIALLY_COPY_CONSTRUCTIBLE_MUTEX #define TL_GCC_LESS_8_TRIVIALLY_COPY_CONSTRUCTIBLE_MUTEX namespace tl { @@ -68,12 +67,13 @@ namespace tl { template struct is_trivially_copy_constructible : std::is_trivially_copy_constructible{}; template +#ifdef _GLIBCXX_VECTOR struct is_trivially_copy_constructible> : std::is_trivially_copy_constructible{}; +#endif } } #endif -#endif #define TL_OPTIONAL_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(T) \ tl::detail::is_trivially_copy_constructible::value