2
0
mirror of https://github.com/boostorg/leaf.git synced 2026-01-19 04:22:08 +00:00

error constructor -> new_error

This commit is contained in:
Emil Dotchevski
2019-01-10 09:29:48 -08:00
parent b1da5131ea
commit a16600a989
31 changed files with 89 additions and 101 deletions

View File

@@ -9,7 +9,6 @@
namespace leaf = boost::leaf;
struct error { };
int object_count=0;
int value_count=0;
@@ -64,7 +63,7 @@ public:
throws_on_copy( throws_on_copy const & )
{
throw error();
throw std::exception();
}
throws_on_copy( throws_on_copy && )
@@ -107,7 +106,7 @@ void run_tests()
optional<throws_on_copy> x(a);
BOOST_TEST(false);
}
catch( error & )
catch( std::exception & )
{
}
}
@@ -201,7 +200,7 @@ void run_tests()
{
(void) (y=x);
}
catch( error & )
catch( std::exception & )
{
}
BOOST_TEST(object_count==1);