From 07390a35e3d6a362154fd0a64e638ba9de44ee52 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 8 Oct 2001 13:55:55 +0000 Subject: [PATCH] Check the const function_cast function [SVN r11364] --- test/function_n_test.cpp | 1 + test/function_test.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/test/function_n_test.cpp b/test/function_n_test.cpp index 77d643b..0769429 100644 --- a/test/function_n_test.cpp +++ b/test/function_n_test.cpp @@ -551,6 +551,7 @@ test_one_arg() const function1 cf2(add_to); BOOST_TEST(cf2(3) == 8); BOOST_TEST(cf2.target_type() == typeid(add_to_obj)); + BOOST_TEST(function_cast(cf2).value == 5); } static void diff --git a/test/function_test.cpp b/test/function_test.cpp index 8ba6d98..c820d40 100644 --- a/test/function_test.cpp +++ b/test/function_test.cpp @@ -551,6 +551,7 @@ test_one_arg() const function cf2(add_to); BOOST_TEST(cf2(3) == 8); BOOST_TEST(cf2.target_type() == typeid(add_to_obj)); + BOOST_TEST(function_cast(cf2).value == 5); } static void