From 03e950083dc01f972775119ee3935c21ee0fc60b Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 31 May 2017 09:24:02 +0300 Subject: [PATCH] g++ 4.7 doesn't have is_trivially_destructible --- test/mp_any.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/mp_any.cpp b/test/mp_any.cpp index 6239bb2..4e236d7 100644 --- a/test/mp_any.cpp +++ b/test/mp_any.cpp @@ -20,7 +20,11 @@ template using check2 = mp_any using check3 = mp_any...>, std::is_nothrow_default_constructible...>; template struct variant_base_impl {}; +#if BOOST_WORKAROUND( BOOST_GCC, < 40800 ) +template using variant_base = variant_base_impl...>::value, mp_any...>, std::is_nothrow_default_constructible...>::value, T...>; +#else template using variant_base = variant_base_impl...>::value, mp_any...>, std::is_nothrow_default_constructible...>::value, T...>; +#endif int main() {