mirror of
https://github.com/boostorg/function.git
synced 2025-07-28 20:07:15 +02:00
Removed enable_if checks: the same syntax is supported regardless of support
for enable_if [SVN r16615]
This commit is contained in:
@ -97,11 +97,7 @@ test_zero_args()
|
|||||||
BOOST_TEST(global_int == 5);
|
BOOST_TEST(global_int == 5);
|
||||||
|
|
||||||
// clear
|
// clear
|
||||||
#ifndef BOOST_FUNCTION_NO_ENABLE_IF
|
|
||||||
v1 = 0;
|
v1 = 0;
|
||||||
#else
|
|
||||||
v1.clear();
|
|
||||||
#endif
|
|
||||||
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
|
||||||
@ -495,11 +491,7 @@ test_zero_args()
|
|||||||
BOOST_TEST(global_int == 2);
|
BOOST_TEST(global_int == 2);
|
||||||
|
|
||||||
// Test construction from 0 and comparison to 0
|
// Test construction from 0 and comparison to 0
|
||||||
#ifndef BOOST_FUNCTION_NO_ENABLE_IF
|
|
||||||
func_void_type v9(0);
|
func_void_type v9(0);
|
||||||
#else
|
|
||||||
func_void_type v9; // just default construct
|
|
||||||
#endif
|
|
||||||
#if !defined(BOOST_MSVC) || BOOST_MSVC > 1300 || defined(BOOST_STRICT_CONFIG)
|
#if !defined(BOOST_MSVC) || BOOST_MSVC > 1300 || defined(BOOST_STRICT_CONFIG)
|
||||||
BOOST_TEST(v9 == 0);
|
BOOST_TEST(v9 == 0);
|
||||||
#endif
|
#endif
|
||||||
|
@ -97,11 +97,7 @@ test_zero_args()
|
|||||||
BOOST_TEST(global_int == 5);
|
BOOST_TEST(global_int == 5);
|
||||||
|
|
||||||
// clear
|
// clear
|
||||||
#ifndef BOOST_FUNCTION_NO_ENABLE_IF
|
|
||||||
v1 = 0;
|
v1 = 0;
|
||||||
#else
|
|
||||||
v1.clear();
|
|
||||||
#endif
|
|
||||||
BOOST_TEST(0 == v1);
|
BOOST_TEST(0 == v1);
|
||||||
|
|
||||||
// Assignment to an empty function from a free function
|
// Assignment to an empty function from a free function
|
||||||
@ -495,11 +491,7 @@ test_zero_args()
|
|||||||
BOOST_TEST(global_int == 2);
|
BOOST_TEST(global_int == 2);
|
||||||
|
|
||||||
// Test construction from 0 and comparison to 0
|
// Test construction from 0 and comparison to 0
|
||||||
#ifndef BOOST_FUNCTION_NO_ENABLE_IF
|
|
||||||
func_void_type v9(0);
|
func_void_type v9(0);
|
||||||
#else
|
|
||||||
func_void_type v9; // just default construct
|
|
||||||
#endif
|
|
||||||
BOOST_TEST(v9 == 0);
|
BOOST_TEST(v9 == 0);
|
||||||
BOOST_TEST(0 == v9);
|
BOOST_TEST(0 == v9);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user