From fab4df3f736fcb22d3d4acb809ed60478b4a3fa4 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 27 Jul 2017 22:18:31 +0300 Subject: [PATCH] Disable problematic test cases on g++ 4.7, 4.8 --- test/mp_quote_trait.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/mp_quote_trait.cpp b/test/mp_quote_trait.cpp index b762a5e..75c84ea 100644 --- a/test/mp_quote_trait.cpp +++ b/test/mp_quote_trait.cpp @@ -43,8 +43,14 @@ int main() BOOST_TEST_TRAIT_TRUE((std::is_same, void const>)); BOOST_TEST_TRAIT_TRUE((std::is_same, int const[]>)); +#if !BOOST_WORKAROUND( BOOST_GCC, < 40900 ) + + // g++ 4.7, 4.8 have difficulties with preserving top-level const + BOOST_TEST_TRAIT_TRUE((std::is_same, void const>)); BOOST_TEST_TRAIT_TRUE((std::is_same, int const[]>)); + +#endif } return boost::report_errors();