Check the const function_cast function

[SVN r11364]
This commit is contained in:
Douglas Gregor committed 2001-10-08 13:55:55 +00:00
1 parent e00d8f0afb
commit 07390a35e3
2 files changed
+2

No files matched your search

+1
View File
@@ -551,6 +551,7 @@ test_one_arg()
const function1<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
+1
View File
@@ -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