Disable is_copy_constructible tests on gcc 4.x

This commit is contained in:
Peter Dimov
2020-01-23 19:13:11 +02:00
parent d6680df4e5
commit 719c43316f
3 changed files with 21 additions and 0 deletions
+6
View File
@@ -9,6 +9,8 @@
#include <boost/variant2/variant.hpp>
#include <boost/core/lightweight_test.hpp>
#include <boost/core/lightweight_test_trait.hpp>
#include <boost/config.hpp>
#include <boost/config/workaround.hpp>
#include <type_traits>
#include <utility>
#include <string>
@@ -124,8 +126,12 @@ int main()
test( v );
}
#if !BOOST_WORKAROUND( __GNUC__, < 5 )
test( variant<D>() );
#endif
{
BOOST_TEST_TRAIT_TRUE((std::is_nothrow_copy_constructible<variant<int>>));
BOOST_TEST_TRAIT_TRUE((std::is_nothrow_copy_constructible<variant<int const>>));