From ceb8bfe9c4052cb87ed4fbb8cde2d96d5c1f9503 Mon Sep 17 00:00:00 2001 From: Simon Brand Date: Thu, 6 Sep 2018 09:33:12 +0100 Subject: [PATCH] Fix #36 --- tl/expected.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tl/expected.hpp b/tl/expected.hpp index f19e8da..b85ca57 100644 --- a/tl/expected.hpp +++ b/tl/expected.hpp @@ -75,20 +75,20 @@ // 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 { namespace detail { template struct is_trivially_copy_constructible : std::is_trivially_copy_constructible{}; +#ifdef _GLIBCXX_VECTOR template struct is_trivially_copy_constructible> : std::is_trivially_copy_constructible{}; +#endif } } #endif -#endif #define TL_EXPECTED_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(T) \ tl::detail::is_trivially_copy_constructible