From b8d3e01e4218eb14a109ee40418d778c308ea5f0 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Sun, 15 Dec 2002 14:55:07 +0000 Subject: [PATCH] Removed enable_if checks: the same syntax is supported regardless of support for enable_if [SVN r16615] --- test/function_n_test.cpp | 8 -------- test/function_test.cpp | 8 -------- 2 files changed, 16 deletions(-) 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);