From eca24d4e5a682e7163476fb121f11d0e0354c002 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sun, 5 Jun 2005 10:36:17 +0000 Subject: [PATCH] Revised test cases were too strict for boken compilers, add a note instead, and only run the full tests for functioning compilers. [SVN r29435] --- test/is_function_test.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/is_function_test.cpp b/test/is_function_test.cpp index ee28191..f92a97d 100644 --- a/test/is_function_test.cpp +++ b/test/is_function_test.cpp @@ -28,7 +28,14 @@ BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_function::value, true); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_function::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_function::value, false); +#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_function::value, false); +#else +std::cout << +"is_function will fail with some types (references for example)" +"if the compiler doesn't support partial specialisation of class templates." +"These are *not* tested here" << std::endl; +#endif BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_function::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_function::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_function::value, false);