forked from boostorg/function
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:
1 parent
657a63fce4
commit
e34716babd
3 files changed
+4
-4
No files matched your search
@@ -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