mirror of
https://github.com/boostorg/function.git
synced 2025-07-18 23:22:08 +02:00
Renamed BOOST_MSVC_ONLY to BOOST_FUNCTION_TARGET_FIX
[SVN r12145]
This commit is contained in:
@ -102,7 +102,7 @@ test_zero_args()
|
|||||||
BOOST_TEST(v1.empty());
|
BOOST_TEST(v1.empty());
|
||||||
|
|
||||||
// Assignment to an empty function from a free function
|
// Assignment to an empty function from a free function
|
||||||
v1 = BOOST_MSVC_ONLY(&) write_five;
|
v1 = BOOST_FUNCTION_TARGET_FIX(&) write_five;
|
||||||
BOOST_TEST(!v1.empty());
|
BOOST_TEST(!v1.empty());
|
||||||
|
|
||||||
// Invocation
|
// Invocation
|
||||||
@ -111,7 +111,7 @@ test_zero_args()
|
|||||||
BOOST_TEST(global_int == 5);
|
BOOST_TEST(global_int == 5);
|
||||||
|
|
||||||
// Assignment to a non-empty function from a free function
|
// Assignment to a non-empty function from a free function
|
||||||
v1 = BOOST_MSVC_ONLY(&) write_three;
|
v1 = BOOST_FUNCTION_TARGET_FIX(&) write_three;
|
||||||
BOOST_TEST(!v1.empty());
|
BOOST_TEST(!v1.empty());
|
||||||
|
|
||||||
// Invocation
|
// Invocation
|
||||||
@ -163,7 +163,7 @@ test_zero_args()
|
|||||||
BOOST_TEST(v2.empty());
|
BOOST_TEST(v2.empty());
|
||||||
|
|
||||||
// Assignment to an empty function from a free function
|
// Assignment to an empty function from a free function
|
||||||
v2.set(BOOST_MSVC_ONLY(&) write_five);
|
v2.set(BOOST_FUNCTION_TARGET_FIX(&) write_five);
|
||||||
BOOST_TEST(v2);
|
BOOST_TEST(v2);
|
||||||
|
|
||||||
// Invocation
|
// Invocation
|
||||||
@ -172,7 +172,7 @@ test_zero_args()
|
|||||||
BOOST_TEST(global_int == 5);
|
BOOST_TEST(global_int == 5);
|
||||||
|
|
||||||
// Assignment to a non-empty function from a free function
|
// Assignment to a non-empty function from a free function
|
||||||
v2 = BOOST_MSVC_ONLY(&) write_three;
|
v2 = BOOST_FUNCTION_TARGET_FIX(&) write_three;
|
||||||
BOOST_TEST(!v2.empty());
|
BOOST_TEST(!v2.empty());
|
||||||
|
|
||||||
// Invocation
|
// Invocation
|
||||||
@ -227,7 +227,7 @@ test_zero_args()
|
|||||||
BOOST_TEST(global_int == 3);
|
BOOST_TEST(global_int == 3);
|
||||||
|
|
||||||
// Assign to a function from a function with a function
|
// Assign to a function from a function with a function
|
||||||
v2 = BOOST_MSVC_ONLY(&) write_five;
|
v2 = BOOST_FUNCTION_TARGET_FIX(&) write_five;
|
||||||
v1 = v2;
|
v1 = v2;
|
||||||
BOOST_TEST(!v1.empty());
|
BOOST_TEST(!v1.empty());
|
||||||
BOOST_TEST(!v2.empty());
|
BOOST_TEST(!v2.empty());
|
||||||
|
Reference in New Issue
Block a user