From ee73a534976a18bcaa2a227562deb5ff1bb37ae7 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Thu, 20 Apr 2017 10:09:57 +0100 Subject: [PATCH] Disable failing tests on gcc 4.6/4.7 c++11 mode Works fine on later versions of GCC, I suspect it's a bug in their noexcept support. --- test/unordered/compile_tests.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/unordered/compile_tests.hpp b/test/unordered/compile_tests.hpp index df49bf91..45ad2111 100644 --- a/test/unordered/compile_tests.hpp +++ b/test/unordered/compile_tests.hpp @@ -19,6 +19,7 @@ #include "../helpers/check_return_type.hpp" #include #include +#include #include #include #include @@ -169,11 +170,15 @@ template void container_test(X& r, T const&) // node_type implicit_construct(); +#if !BOOST_COMP_GNUC || BOOST_COMP_GNUC >= BOOST_VERSION_NUMBER(4, 8, 0) TEST_NOEXCEPT_EXPR(node_type()); +#endif node_type n1; node_type n2(rvalue_default()); +#if !BOOST_COMP_GNUC || BOOST_COMP_GNUC >= BOOST_VERSION_NUMBER(4, 8, 0) TEST_NOEXCEPT_EXPR(node_type(boost::move(n1))); +#endif node_type n3; n3 = boost::move(n2); n1.swap(n3);