3#define BOOST_TEST_MODULE scoped_exit
4#include <boost/test/included/unit_test.hpp>
8BOOST_AUTO_TEST_SUITE(scoped_exit_test_suite)
15 BOOST_TEST(result ==
false);
17 BOOST_TEST(result ==
true);
24 BOOST_TEST(result ==
false);
27 BOOST_TEST(result ==
false);
34 BOOST_TEST(result ==
false);
36 auto g2 = std::move(g1);
37 BOOST_TEST(result ==
false);
39 BOOST_TEST(result ==
true);
42 BOOST_TEST(result ==
false);
53 auto g2 = std::move(g);
56BOOST_AUTO_TEST_SUITE_END()
scoped_exit< Callback > make_scoped_exit(Callback &&c)
move_only(move_only &&)=default
BOOST_AUTO_TEST_CASE(scoped_exit_test)