forked from boostorg/type_traits
Revised test cases were too strict for boken compilers, add a note instead, and only run the full tests for functioning compilers.
[SVN r29435]
This commit is contained in:
1 parent
24f89286a7
commit
eca24d4e5a
1 file changed
+7
@@ -28,7 +28,14 @@ BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_function<foo4_t>::value, true);
|
||||
|
||||
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_function<void>::value, false);
|
||||
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_function<int>::value, false);
|
||||
#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
|
||||
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_function<int&>::value, false);
|
||||
#else
|
||||
std::cout <<
|
||||
"<note>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</note>" << std::endl;
|
||||
#endif
|
||||
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_function<int*>::value, false);
|
||||
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_function<int[]>::value, false);
|
||||
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_function<test_abc1>::value, false);
|
||||
|
||||
Reference in new issue
Block a user