mirror of
https://github.com/boostorg/function.git
synced 2025-07-19 15:42:11 +02:00
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:
@ -476,7 +476,7 @@ test_zero_args()
|
|||||||
|
|
||||||
global_int = 0;
|
global_int = 0;
|
||||||
v7();
|
v7();
|
||||||
BOOST_TEST(global_int == 1);
|
BOOST_TEST(global_int == 2);
|
||||||
|
|
||||||
global_int = 0;
|
global_int = 0;
|
||||||
v8();
|
v8();
|
||||||
|
@ -476,7 +476,7 @@ test_zero_args()
|
|||||||
|
|
||||||
global_int = 0;
|
global_int = 0;
|
||||||
v7();
|
v7();
|
||||||
BOOST_TEST(global_int == 1);
|
BOOST_TEST(global_int == 2);
|
||||||
|
|
||||||
global_int = 0;
|
global_int = 0;
|
||||||
v8();
|
v8();
|
||||||
|
@ -27,8 +27,8 @@ struct counting_policy
|
|||||||
{
|
{
|
||||||
static int count;
|
static int count;
|
||||||
|
|
||||||
void precall(function_base*) { count++; }
|
void precall(const function_base*) { count++; }
|
||||||
void postcall(function_base*) { count+=2; }
|
void postcall(const function_base*) { count+=2; }
|
||||||
};
|
};
|
||||||
|
|
||||||
int counting_policy::count = 0;
|
int counting_policy::count = 0;
|
||||||
|
Reference in New Issue
Block a user