From 84bdb40567c0e0417790587a2b8091d9cd07566a Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 19 Jul 2002 19:42:25 +0000 Subject: [PATCH] Don't test new syntax if partial specialization is unavailable [SVN r14536] --- test/allocator_test.cpp | 2 ++ test/function_test.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test/allocator_test.cpp b/test/allocator_test.cpp index e0721de..71dddcc 100644 --- a/test/allocator_test.cpp +++ b/test/allocator_test.cpp @@ -84,6 +84,7 @@ test_main(int, char*[]) fv = &do_nothing; fv.clear(); +#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION typedef int Ftype(int, int); function > f2; @@ -93,6 +94,7 @@ test_main(int, char*[]) f2.clear(); BOOST_TEST(alloc_count == 1); BOOST_TEST(dealloc_count == 1); +#endif return 0; } diff --git a/test/function_test.cpp b/test/function_test.cpp index fef691c..d7211a7 100644 --- a/test/function_test.cpp +++ b/test/function_test.cpp @@ -635,6 +635,7 @@ test_ref() static void test_new_syntax() { +#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION write_five_obj five; function v2; @@ -654,6 +655,7 @@ test_new_syntax() typedef int Fsum(short lhs, short rhs); function sum(&sum_ints); BOOST_TEST(sum(2, 3) == 5); +#endif } int test_main(int, char* [])