forked from boostorg/function
Check the const function_cast function
[SVN r11364]
This commit is contained in:
@ -551,6 +551,7 @@ test_one_arg()
|
||||
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