diff --git a/test/function_n_test.cpp b/test/function_n_test.cpp index a89d936..5bb8b05 100644 --- a/test/function_n_test.cpp +++ b/test/function_n_test.cpp @@ -97,11 +97,7 @@ test_zero_args() BOOST_TEST(global_int == 5); // clear -#ifndef BOOST_FUNCTION_NO_ENABLE_IF v1 = 0; -#else - v1.clear(); -#endif BOOST_TEST(v1.empty()); // Assignment to an empty function from a free function @@ -495,11 +491,7 @@ test_zero_args() BOOST_TEST(global_int == 2); // Test construction from 0 and comparison to 0 -#ifndef BOOST_FUNCTION_NO_ENABLE_IF 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) BOOST_TEST(v9 == 0); #endif diff --git a/test/function_test.cpp b/test/function_test.cpp index 99c4e97..13db41e 100644 --- a/test/function_test.cpp +++ b/test/function_test.cpp @@ -97,11 +97,7 @@ test_zero_args() BOOST_TEST(global_int == 5); // clear -#ifndef BOOST_FUNCTION_NO_ENABLE_IF v1 = 0; -#else - v1.clear(); -#endif BOOST_TEST(0 == v1); // Assignment to an empty function from a free function @@ -495,11 +491,7 @@ test_zero_args() BOOST_TEST(global_int == 2); // Test construction from 0 and comparison to 0 -#ifndef BOOST_FUNCTION_NO_ENABLE_IF func_void_type v9(0); -#else - func_void_type v9; // just default construct -#endif BOOST_TEST(v9 == 0); BOOST_TEST(0 == v9);