diff --git a/include/boost/type_traits/has_trivial_assign.hpp b/include/boost/type_traits/has_trivial_assign.hpp index 71c4ae6..c4f6b45 100644 --- a/include/boost/type_traits/has_trivial_assign.hpp +++ b/include/boost/type_traits/has_trivial_assign.hpp @@ -32,7 +32,7 @@ struct has_trivial_assign_impl BOOST_STATIC_CONSTANT(bool, value = (::boost::type_traits::ice_and< ::boost::type_traits::ice_or< - ::boost::is_POD::value, + ::boost::is_pod::value, BOOST_HAS_TRIVIAL_ASSIGN(T) >::value, ::boost::type_traits::ice_not< ::boost::is_const::value >::value, diff --git a/include/boost/type_traits/has_trivial_constructor.hpp b/include/boost/type_traits/has_trivial_constructor.hpp index 3a74f17..d867251 100644 --- a/include/boost/type_traits/has_trivial_constructor.hpp +++ b/include/boost/type_traits/has_trivial_constructor.hpp @@ -27,7 +27,7 @@ struct has_trivial_ctor_impl { BOOST_STATIC_CONSTANT(bool, value = (::boost::type_traits::ice_or< - ::boost::is_POD::value, + ::boost::is_pod::value, BOOST_HAS_TRIVIAL_CONSTRUCTOR(T) >::value)); }; diff --git a/include/boost/type_traits/has_trivial_copy.hpp b/include/boost/type_traits/has_trivial_copy.hpp index ffd475c..8decc67 100644 --- a/include/boost/type_traits/has_trivial_copy.hpp +++ b/include/boost/type_traits/has_trivial_copy.hpp @@ -31,7 +31,7 @@ struct has_trivial_copy_impl BOOST_STATIC_CONSTANT(bool, value = (::boost::type_traits::ice_and< ::boost::type_traits::ice_or< - ::boost::is_POD::value, + ::boost::is_pod::value, BOOST_HAS_TRIVIAL_COPY(T) >::value, ::boost::type_traits::ice_not< ::boost::is_volatile::value >::value diff --git a/include/boost/type_traits/has_trivial_destructor.hpp b/include/boost/type_traits/has_trivial_destructor.hpp index 97aab19..7e3bbf1 100644 --- a/include/boost/type_traits/has_trivial_destructor.hpp +++ b/include/boost/type_traits/has_trivial_destructor.hpp @@ -27,7 +27,7 @@ struct has_trivial_dtor_impl { BOOST_STATIC_CONSTANT(bool, value = (::boost::type_traits::ice_or< - ::boost::is_POD::value, + ::boost::is_pod::value, BOOST_HAS_TRIVIAL_DESTRUCTOR(T) >::value)); }; diff --git a/include/boost/type_traits/is_pod.hpp b/include/boost/type_traits/is_pod.hpp index 606a2e8..e6e0fff 100644 --- a/include/boost/type_traits/is_pod.hpp +++ b/include/boost/type_traits/is_pod.hpp @@ -116,6 +116,7 @@ template struct is_POD_impl } // namespace detail BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_POD,T,::boost::detail::is_POD_impl::value) +BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_pod,T,::boost::is_POD::value) // the following help compilers without partial specialization support: BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_POD,void,true) diff --git a/include/boost/type_traits/object_traits.hpp b/include/boost/type_traits/object_traits.hpp index f604aa1..54fe5fe 100644 --- a/include/boost/type_traits/object_traits.hpp +++ b/include/boost/type_traits/object_traits.hpp @@ -7,7 +7,7 @@ // See http://www.boost.org for most recent version including documentation. // // defines object traits classes: -// is_object, is_scalar, is_class, is_compound, is_POD, +// is_object, is_scalar, is_class, is_compound, is_pod, // has_trivial_constructor, has_trivial_copy, has_trivial_assign, // has_trivial_destructor, is_empty. // diff --git a/include/boost/type_traits/type_with_alignment.hpp b/include/boost/type_traits/type_with_alignment.hpp index dfc6313..9eb43e2 100644 --- a/include/boost/type_traits/type_with_alignment.hpp +++ b/include/boost/type_traits/type_with_alignment.hpp @@ -82,14 +82,14 @@ struct is_aligned } // namespace detail -BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_POD,::boost::detail::max_align,true) -BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_POD,detail::lower_alignment<1> ,true) -BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_POD,::boost::detail::lower_alignment<2> ,true) -BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_POD,::boost::detail::lower_alignment<4> ,true) -BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_POD,::boost::detail::lower_alignment<8> ,true) -BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_POD,::boost::detail::lower_alignment<10> ,true) -BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_POD,::boost::detail::lower_alignment<16> ,true) -BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_POD,::boost::detail::lower_alignment<32> ,true) +BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_pod,::boost::detail::max_align,true) +BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_pod,detail::lower_alignment<1> ,true) +BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_pod,::boost::detail::lower_alignment<2> ,true) +BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_pod,::boost::detail::lower_alignment<4> ,true) +BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_pod,::boost::detail::lower_alignment<8> ,true) +BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_pod,::boost::detail::lower_alignment<10> ,true) +BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_pod,::boost::detail::lower_alignment<16> ,true) +BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_pod,::boost::detail::lower_alignment<32> ,true) // This alignment method originally due to Brian Parker, implemented by David @@ -134,10 +134,10 @@ struct a8{ double s; }; struct a16{ long double s; }; #pragma option pop } -BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_POD,::boost::align::a2,true) -BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_POD,::boost::align::a4,true) -BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_POD,::boost::align::a8,true) -BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_POD,::boost::align::a16,true) +BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_pod,::boost::align::a2,true) +BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_pod,::boost::align::a4,true) +BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_pod,::boost::align::a8,true) +BOOST_TT_AUX_BOOL_TRAIT_SPEC1(is_pod,::boost::align::a16,true) template struct type_with_alignment { diff --git a/index.htm b/index.htm index 873dc8b..6f66cb7 100644 --- a/index.htm +++ b/index.htm @@ -439,7 +439,7 @@ has.

  - ::boost::is_POD<T>::value + ::boost::is_pod<T>::value Evaluates to true only if T is a cv-qualified POD type.

9p4

Without - some (as yet unspecified) help from the compiler, is_POD + some (as yet unspecified) help from the compiler, is_pod will never report that a class or struct is a POD; this is always safe, if possibly sub-optimal.

If the compiler does not support partial-specialization of class diff --git a/test/is_pod_test.cpp b/test/is_pod_test.cpp index 1d38778..a274ceb 100644 --- a/test/is_pod_test.cpp +++ b/test/is_pod_test.cpp @@ -10,149 +10,149 @@ TT_TEST_BEGIN(is_pod) -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); #ifdef BOOST_HAS_LONG_LONG -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); #endif #ifdef BOOST_HAS_MS_INT64 -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD<__int8>::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD<__int8 const>::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD<__int8 volatile>::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD<__int8 const volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod<__int8>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod<__int8 const>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod<__int8 volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod<__int8 const volatile>::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD<__int16>::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD<__int16 const>::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD<__int16 volatile>::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD<__int16 const volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod<__int16>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod<__int16 const>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod<__int16 volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod<__int16 const volatile>::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD<__int32>::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD<__int32 const>::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD<__int32 volatile>::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD<__int32 const volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod<__int32>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod<__int32 const>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod<__int32 volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod<__int32 const volatile>::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD<__int64>::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD<__int64 const>::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD<__int64 volatile>::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD<__int64 const volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod<__int64>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod<__int64 const>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod<__int64 volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod<__int64 const volatile>::value, true); #endif -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, false); // cases we would like to succeed but can't implement in the language: -BOOST_CHECK_SOFT_INTEGRAL_CONSTANT(::tt::is_POD::value, true, false); -BOOST_CHECK_SOFT_INTEGRAL_CONSTANT(::tt::is_POD::value, true, false); -BOOST_CHECK_SOFT_INTEGRAL_CONSTANT(::tt::is_POD::value, true, false); -BOOST_CHECK_SOFT_INTEGRAL_CONSTANT(::tt::is_POD::value, true, false); +BOOST_CHECK_SOFT_INTEGRAL_CONSTANT(::tt::is_pod::value, true, false); +BOOST_CHECK_SOFT_INTEGRAL_CONSTANT(::tt::is_pod::value, true, false); +BOOST_CHECK_SOFT_INTEGRAL_CONSTANT(::tt::is_pod::value, true, false); +BOOST_CHECK_SOFT_INTEGRAL_CONSTANT(::tt::is_pod::value, true, false); TT_TEST_END diff --git a/test/tricky_function_type_test.cpp b/test/tricky_function_type_test.cpp index 7045f8f..8a1bc12 100644 --- a/test/tricky_function_type_test.cpp +++ b/test/tricky_function_type_test.cpp @@ -29,7 +29,7 @@ BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_enum::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_scalar::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_class::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_compound::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_constructor::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_copy::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_assign::value, false); @@ -41,7 +41,7 @@ BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_class::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_enum::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_scalar::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_compound::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_constructor::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_copy::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_assign::value, false); @@ -51,7 +51,7 @@ BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_class::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_enum::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_scalar::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_compound::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_constructor::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_copy::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_assign::value, false); @@ -61,7 +61,7 @@ BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_class::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_enum::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_scalar::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_compound::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_constructor::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_copy::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_assign::value, false); @@ -71,7 +71,7 @@ BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_class::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_enum::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_scalar::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_compound::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_constructor::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_copy::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_assign::value, false); diff --git a/test/tricky_incomplete_type_test.cpp b/test/tricky_incomplete_type_test.cpp index 3ae60f8..33ca03a 100644 --- a/test/tricky_incomplete_type_test.cpp +++ b/test/tricky_incomplete_type_test.cpp @@ -20,7 +20,7 @@ BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_destructor::val BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_class::value, true); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_compound::value, true); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_enum::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_scalar::value, false); TT_TEST_END diff --git a/test/type_with_alignment_test.cpp b/test/type_with_alignment_test.cpp index a81f803..57edcb1 100644 --- a/test/type_with_alignment_test.cpp +++ b/test/type_with_alignment_test.cpp @@ -118,83 +118,83 @@ BOOST_CHECK(::tt::alignment_of< >::value == ::boost::alignment_of::value); // check that the type produced are POD's: -BOOST_CHECK(::tt::is_POD< +BOOST_CHECK(::tt::is_pod< ::tt::type_with_alignment< ::tt::alignment_of::value>::type >::value); -BOOST_CHECK(::tt::is_POD< +BOOST_CHECK(::tt::is_pod< ::tt::type_with_alignment< ::tt::alignment_of::value>::type >::value); -BOOST_CHECK(::tt::is_POD< +BOOST_CHECK(::tt::is_pod< ::tt::type_with_alignment< ::tt::alignment_of::value>::type >::value); -BOOST_CHECK(::tt::is_POD< +BOOST_CHECK(::tt::is_pod< ::tt::type_with_alignment< ::tt::alignment_of::value>::type >::value); -BOOST_CHECK(::tt::is_POD< +BOOST_CHECK(::tt::is_pod< ::tt::type_with_alignment< ::tt::alignment_of::value>::type >::value); -BOOST_CHECK(::tt::is_POD< +BOOST_CHECK(::tt::is_pod< ::tt::type_with_alignment< ::tt::alignment_of::value>::type >::value); -BOOST_CHECK(::tt::is_POD< +BOOST_CHECK(::tt::is_pod< ::tt::type_with_alignment< ::tt::alignment_of::value>::type >::value); #ifdef BOOST_HAS_LONG_LONG -BOOST_CHECK(::tt::is_POD< +BOOST_CHECK(::tt::is_pod< ::tt::type_with_alignment< ::tt::alignment_of::value>::type >::value); #endif #ifdef BOOST_HAS_MS_INT64 -BOOST_CHECK(::tt::is_POD< +BOOST_CHECK(::tt::is_pod< ::tt::type_with_alignment< ::tt::alignment_of<__int64>::value>::type >::value); #endif -BOOST_CHECK(::tt::is_POD< +BOOST_CHECK(::tt::is_pod< ::tt::type_with_alignment< ::tt::alignment_of::value>::type >::value); -BOOST_CHECK(::tt::is_POD< +BOOST_CHECK(::tt::is_pod< ::tt::type_with_alignment< ::tt::alignment_of::value>::type >::value); -BOOST_CHECK(::tt::is_POD< +BOOST_CHECK(::tt::is_pod< ::tt::type_with_alignment< ::tt::alignment_of::value>::type >::value); -BOOST_CHECK(::tt::is_POD< +BOOST_CHECK(::tt::is_pod< ::tt::type_with_alignment< ::tt::alignment_of::value>::type >::value); -BOOST_CHECK(::tt::is_POD< +BOOST_CHECK(::tt::is_pod< ::tt::type_with_alignment< ::tt::alignment_of::value>::type >::value); -BOOST_CHECK(::tt::is_POD< +BOOST_CHECK(::tt::is_pod< ::tt::type_with_alignment< ::tt::alignment_of::value>::type >::value); -BOOST_CHECK(::tt::is_POD< +BOOST_CHECK(::tt::is_pod< ::tt::type_with_alignment< ::tt::alignment_of::value>::type >::value); -BOOST_CHECK(::tt::is_POD< +BOOST_CHECK(::tt::is_pod< ::tt::type_with_alignment< ::tt::alignment_of::value>::type >::value); -BOOST_CHECK(::tt::is_POD< +BOOST_CHECK(::tt::is_pod< ::tt::type_with_alignment< ::tt::alignment_of::value>::type >::value); -BOOST_CHECK(::tt::is_POD< +BOOST_CHECK(::tt::is_pod< ::tt::type_with_alignment< ::tt::alignment_of::value>::type >::value);