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);