diff --git a/index.html b/index.html index 5ba5c27..989eeb2 100644 --- a/index.html +++ b/index.html @@ -987,7 +987,7 @@ struct is_class<my_union> } -

Example code

+

Example code

Type-traits comes with four example programs that illustrate some of the ways in which the type traits templates may be used:

Copy_example.cpp

diff --git a/test/tricky_abstract_type_test.cpp b/test/tricky_abstract_type_test.cpp index e146740..4713cac 100644 --- a/test/tricky_abstract_type_test.cpp +++ b/test/tricky_abstract_type_test.cpp @@ -16,7 +16,9 @@ TT_TEST_BEGIN(tricky_abstract_type_test) BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_empty::value, false); +#ifndef TEST_STD BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_stateless::value, false); +#endif TT_TEST_END diff --git a/test/tricky_function_type_test.cpp b/test/tricky_function_type_test.cpp index 8e2e16e..a3a0d71 100644 --- a/test/tricky_function_type_test.cpp +++ b/test/tricky_function_type_test.cpp @@ -20,7 +20,7 @@ # include # include # include -# include +# include # include #endif @@ -39,7 +39,7 @@ BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_constructor::value, fals BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_copy::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_assign::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_destructor::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_base_and_derived::value), false); +BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_base_of::value), false); BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_convertible::value), false); diff --git a/test/tricky_partial_spec_test.cpp b/test/tricky_partial_spec_test.cpp index a338d94..781e652 100644 --- a/test/tricky_partial_spec_test.cpp +++ b/test/tricky_partial_spec_test.cpp @@ -54,10 +54,10 @@ BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of::value, ALIGNOF(void*)); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of::value, ALIGNOF(void*)); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of::value, ALIGNOF(void*)); -BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_base_and_derived::value), false); -BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_base_and_derived::value), false); -BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_base_and_derived::value), false); -BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_base_and_derived::value), false); +BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_base_of::value), false); +BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_base_of::value), false); +BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_base_of::value), false); +BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_base_of::value), false); BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_same::value), false); BOOST_CHECK_INTEGRAL_CONSTANT((::tt::is_same::value), true);