function_n_test.cpp:

function_test.cpp:
  - Removed use of (previously existing) ability to use references for the
    first parameter to an unbound pointer-to-member function. Only pointer-like
    entities are allowed.


[SVN r11728]
This commit is contained in:
Douglas Gregor
2001-11-19 20:19:23 +00:00
parent 11c56da46f
commit d37d210685
2 changed files with 8 additions and 10 deletions

View File

@ -598,13 +598,12 @@ test_member_functions()
BOOST_TEST(f1_2(&one) == 2);
BOOST_TEST(f1_2(&five) == 10);
boost::function<int, X&, int> f2(&X::plus);
BOOST_TEST(f2(one, 3) == 4);
BOOST_TEST(f2(five, 4) == 9);
boost::function<int, X*, int> f2(&X::plus);
BOOST_TEST(f2(&one, 3) == 4);
BOOST_TEST(f2(&five, 4) == 9);
}
int
test_main(int, char* [])
int test_main(int, char* [])
{
test_zero_args();
test_one_arg();