forked from boostorg/function
Remove checks for function_cast and .target_type()
[SVN r11442]
This commit is contained in:
@ -523,8 +523,6 @@ test_zero_args()
|
||||
BOOST_TEST(i1);
|
||||
i1.clear();
|
||||
BOOST_TEST(!i1);
|
||||
|
||||
BOOST_TEST(i1.target_type() == typeid(void));
|
||||
}
|
||||
|
||||
static void
|
||||
@ -544,14 +542,9 @@ test_one_arg()
|
||||
add_to_obj add_to(5);
|
||||
function<int, int> f2(add_to);
|
||||
BOOST_TEST(f2(3) == 8);
|
||||
BOOST_TEST(f2.target_type() == typeid(add_to_obj));
|
||||
function_cast<add_to_obj>(f2).value = 12;
|
||||
BOOST_TEST(f2(3) == 15);
|
||||
|
||||
const function<int, int> cf2(add_to);
|
||||
BOOST_TEST(cf2(3) == 8);
|
||||
BOOST_TEST(cf2.target_type() == typeid(add_to_obj));
|
||||
BOOST_TEST(function_cast<add_to_obj>(cf2).value == 5);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user