function_n_test.cpp:

function_test.cpp:
	- Updated testcases to reflect semantic change in const calling

policy_test.cpp:
	- precall/postcall in policy should take pointers to const function_base


[SVN r10686]
This commit is contained in:
Douglas Gregor
2001-07-22 05:27:20 +00:00
parent 657a63fce4
commit e34716babd
3 changed files with 4 additions and 4 deletions

View File

@ -476,7 +476,7 @@ test_zero_args()
global_int = 0;
v7();
BOOST_TEST(global_int == 1);
BOOST_TEST(global_int == 2);
global_int = 0;
v8();

View File

@ -476,7 +476,7 @@ test_zero_args()
global_int = 0;
v7();
BOOST_TEST(global_int == 1);
BOOST_TEST(global_int == 2);
global_int = 0;
v8();

View File

@ -27,8 +27,8 @@ struct counting_policy
{
static int count;
void precall(function_base*) { count++; }
void postcall(function_base*) { count+=2; }
void precall(const function_base*) { count++; }
void postcall(const function_base*) { count+=2; }
};
int counting_policy::count = 0;