diff --git a/test/variant_copy_construct.cpp b/test/variant_copy_construct.cpp index 63c9867..d19e9a3 100644 --- a/test/variant_copy_construct.cpp +++ b/test/variant_copy_construct.cpp @@ -48,6 +48,13 @@ struct Y Y( Y const& ) = delete; }; +struct D +{ + ~D() {} +}; + +inline bool operator==( D, D ) { return true; } + template static void test( V const & v ) { V v2( v ); @@ -117,6 +124,8 @@ int main() test( v ); } + test( variant() ); + { BOOST_TEST_TRAIT_TRUE((std::is_nothrow_copy_constructible>)); BOOST_TEST_TRAIT_TRUE((std::is_nothrow_copy_constructible>));