From e0b3b0418aab5b74c2582625717e66fb7f6f65f1 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sat, 4 Sep 2004 10:34:49 +0000 Subject: [PATCH] Added new types boost::long_long_type and boost::ulong_long_type in boost/config.hpp and applied these types in place of "long long" throughout. As a result, almost all of boost now compiles cleanly with -ansi -pedantic with gcc. Changes tested with gcc 3.3, 2.95, VC7.1 and Intel 8. [SVN r24899] --- include/boost/type_traits/is_convertible.hpp | 3 ++- include/boost/type_traits/is_integral.hpp | 4 ++-- .../boost/type_traits/type_with_alignment.hpp | 2 +- test/alignment_of_test.cpp | 2 +- test/has_nothrow_assign_test.cpp | 16 ++++++++-------- test/has_nothrow_constr_test.cpp | 16 ++++++++-------- test/has_nothrow_copy_test.cpp | 16 ++++++++-------- test/has_trivial_assign_test.cpp | 16 ++++++++-------- test/has_trivial_constr_test.cpp | 16 ++++++++-------- test/has_trivial_copy_test.cpp | 16 ++++++++-------- test/has_trivial_destructor_test.cpp | 16 ++++++++-------- test/is_arithmetic_test.cpp | 16 ++++++++-------- test/is_fundamental_test.cpp | 16 ++++++++-------- test/is_integral_test.cpp | 16 ++++++++-------- test/is_pod_test.cpp | 16 ++++++++-------- test/is_scalar_test.cpp | 16 ++++++++-------- test/is_stateless_test.cpp | 16 ++++++++-------- test/type_with_alignment_test.cpp | 6 +++--- 18 files changed, 113 insertions(+), 112 deletions(-) diff --git a/include/boost/type_traits/is_convertible.hpp b/include/boost/type_traits/is_convertible.hpp index 9d7cd95..88a8ccf 100644 --- a/include/boost/type_traits/is_convertible.hpp +++ b/include/boost/type_traits/is_convertible.hpp @@ -300,7 +300,8 @@ BOOST_TT_AUX_BOOL_TRAIT_DEF2(is_convertible,From,To,(::boost::detail::is_convert TT_AUX_IS_CONVERTIBLE_SPEC_2(F,short) \ TT_AUX_IS_CONVERTIBLE_SPEC_2(F,int) \ TT_AUX_IS_CONVERTIBLE_SPEC_2(F,long) \ - TT_AUX_IS_CONVERTIBLE_SPEC_2(F,long long) \ + TT_AUX_IS_CONVERTIBLE_SPEC(F,::boost::long_long_type) \ + TT_AUX_IS_CONVERTIBLE_SPEC(F,::boost::ulong_long_type) \ /**/ # define TT_AUX_IS_CONVERTIBLE_FROM_FLOAT_CV_SPEC(F) \ diff --git a/include/boost/type_traits/is_integral.hpp b/include/boost/type_traits/is_integral.hpp index 374d4ad..62ef83b 100644 --- a/include/boost/type_traits/is_integral.hpp +++ b/include/boost/type_traits/is_integral.hpp @@ -57,8 +57,8 @@ BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,__int64,true) #endif # if defined(BOOST_HAS_LONG_LONG) -BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,unsigned long long,true) -BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,long long,true) +BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral, ::boost::ulong_long_type,true) +BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral, ::boost::long_long_type,true) #elif defined(BOOST_HAS_MS_INT64) BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,unsigned __int64,true) BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,__int64,true) diff --git a/include/boost/type_traits/type_with_alignment.hpp b/include/boost/type_traits/type_with_alignment.hpp index 64351cc..f82c16f 100644 --- a/include/boost/type_traits/type_with_alignment.hpp +++ b/include/boost/type_traits/type_with_alignment.hpp @@ -43,7 +43,7 @@ typedef int (alignment_dummy::*member_function_ptr)(); #ifdef BOOST_HAS_LONG_LONG #define BOOST_TT_ALIGNMENT_BASE_TYPES BOOST_PP_TUPLE_TO_LIST( \ 12, ( \ - char, short, int, long, long long, float, double, long double \ + char, short, int, long, ::boost::long_long_type, float, double, long double \ , void*, function_ptr, member_ptr, member_function_ptr)) #else #define BOOST_TT_ALIGNMENT_BASE_TYPES BOOST_PP_TUPLE_TO_LIST( \ diff --git a/test/alignment_of_test.cpp b/test/alignment_of_test.cpp index 852b77b..2287b75 100644 --- a/test/alignment_of_test.cpp +++ b/test/alignment_of_test.cpp @@ -44,7 +44,7 @@ BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of::value, ALIGNOF(float)); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of::value, ALIGNOF(double)); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of::value, ALIGNOF(long double)); #ifdef BOOST_HAS_LONG_LONG -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of::value, ALIGNOF(long long)); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of< ::boost::long_long_type>::value, ALIGNOF(::boost::long_long_type)); #endif #ifdef BOOST_HAS_MS_INT64 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of<__int64>::value, ALIGNOF(__int64)); diff --git a/test/has_nothrow_assign_test.cpp b/test/has_nothrow_assign_test.cpp index c283b1d..74ed897 100644 --- a/test/has_nothrow_assign_test.cpp +++ b/test/has_nothrow_assign_test.cpp @@ -61,14 +61,14 @@ BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_assign::val #ifdef BOOST_HAS_LONG_LONG -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_assign::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_assign::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_assign::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_assign::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_assign::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_assign::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_assign::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_assign::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_assign< ::boost::ulong_long_type>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_assign< ::boost::long_long_type>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_assign< ::boost::ulong_long_type const>::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_assign< ::boost::long_long_type const>::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_assign< ::boost::ulong_long_type volatile>::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_assign< ::boost::long_long_type volatile>::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_assign< ::boost::ulong_long_type const volatile>::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_assign< ::boost::long_long_type const volatile>::value, false); #endif diff --git a/test/has_nothrow_constr_test.cpp b/test/has_nothrow_constr_test.cpp index a858dec..4968d03 100644 --- a/test/has_nothrow_constr_test.cpp +++ b/test/has_nothrow_constr_test.cpp @@ -61,14 +61,14 @@ BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_constructor #ifdef BOOST_HAS_LONG_LONG -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_constructor::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_constructor::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_constructor::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_constructor::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_constructor::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_constructor::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_constructor::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_constructor::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_constructor< ::boost::ulong_long_type>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_constructor< ::boost::long_long_type>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_constructor< ::boost::ulong_long_type const>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_constructor< ::boost::long_long_type const>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_constructor< ::boost::ulong_long_type volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_constructor< ::boost::long_long_type volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_constructor< ::boost::ulong_long_type const volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_constructor< ::boost::long_long_type const volatile>::value, true); #endif diff --git a/test/has_nothrow_copy_test.cpp b/test/has_nothrow_copy_test.cpp index 4873763..4806072 100644 --- a/test/has_nothrow_copy_test.cpp +++ b/test/has_nothrow_copy_test.cpp @@ -61,14 +61,14 @@ BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_copy::value #ifdef BOOST_HAS_LONG_LONG -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_copy::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_copy::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_copy::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_copy::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_copy::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_copy::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_copy::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_copy::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_copy< ::boost::ulong_long_type>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_copy< ::boost::long_long_type>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_copy< ::boost::ulong_long_type const>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_copy< ::boost::long_long_type const>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_copy< ::boost::ulong_long_type volatile>::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_copy< ::boost::long_long_type volatile>::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_copy< ::boost::ulong_long_type const volatile>::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_nothrow_copy< ::boost::long_long_type const volatile>::value, false); #endif diff --git a/test/has_trivial_assign_test.cpp b/test/has_trivial_assign_test.cpp index 08da59b..b014398 100644 --- a/test/has_trivial_assign_test.cpp +++ b/test/has_trivial_assign_test.cpp @@ -61,14 +61,14 @@ BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_assign::val #ifdef BOOST_HAS_LONG_LONG -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_assign::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_assign::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_assign::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_assign::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_assign::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_assign::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_assign::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_assign::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_assign< ::boost::ulong_long_type>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_assign< ::boost::long_long_type>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_assign< ::boost::ulong_long_type const>::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_assign< ::boost::long_long_type const>::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_assign< ::boost::ulong_long_type volatile>::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_assign< ::boost::long_long_type volatile>::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_assign< ::boost::ulong_long_type const volatile>::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_assign< ::boost::long_long_type const volatile>::value, false); #endif diff --git a/test/has_trivial_constr_test.cpp b/test/has_trivial_constr_test.cpp index d006f91..ccadb1f 100644 --- a/test/has_trivial_constr_test.cpp +++ b/test/has_trivial_constr_test.cpp @@ -61,14 +61,14 @@ BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_constructor #ifdef BOOST_HAS_LONG_LONG -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_constructor::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_constructor::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_constructor::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_constructor::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_constructor::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_constructor::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_constructor::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_constructor::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_constructor< ::boost::ulong_long_type>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_constructor< ::boost::long_long_type>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_constructor< ::boost::ulong_long_type const>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_constructor< ::boost::long_long_type const>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_constructor< ::boost::ulong_long_type volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_constructor< ::boost::long_long_type volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_constructor< ::boost::ulong_long_type const volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_constructor< ::boost::long_long_type const volatile>::value, true); #endif diff --git a/test/has_trivial_copy_test.cpp b/test/has_trivial_copy_test.cpp index f082b7d..b665d66 100644 --- a/test/has_trivial_copy_test.cpp +++ b/test/has_trivial_copy_test.cpp @@ -61,14 +61,14 @@ BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_copy::value #ifdef BOOST_HAS_LONG_LONG -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_copy::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_copy::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_copy::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_copy::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_copy::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_copy::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_copy::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_copy::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_copy< ::boost::ulong_long_type>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_copy< ::boost::long_long_type>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_copy< ::boost::ulong_long_type const>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_copy< ::boost::long_long_type const>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_copy< ::boost::ulong_long_type volatile>::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_copy< ::boost::long_long_type volatile>::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_copy< ::boost::ulong_long_type const volatile>::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_copy< ::boost::long_long_type const volatile>::value, false); #endif diff --git a/test/has_trivial_destructor_test.cpp b/test/has_trivial_destructor_test.cpp index e9a72a7..577c5e4 100644 --- a/test/has_trivial_destructor_test.cpp +++ b/test/has_trivial_destructor_test.cpp @@ -61,14 +61,14 @@ BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_destructor: #ifdef BOOST_HAS_LONG_LONG -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_destructor::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_destructor::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_destructor::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_destructor::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_destructor::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_destructor::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_destructor::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_destructor::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_destructor< ::boost::ulong_long_type>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_destructor< ::boost::long_long_type>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_destructor< ::boost::ulong_long_type const>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_destructor< ::boost::long_long_type const>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_destructor< ::boost::ulong_long_type volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_destructor< ::boost::long_long_type volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_destructor< ::boost::ulong_long_type const volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::has_trivial_destructor< ::boost::long_long_type const volatile>::value, true); #endif diff --git a/test/is_arithmetic_test.cpp b/test/is_arithmetic_test.cpp index 67221ee..ef51319 100644 --- a/test/is_arithmetic_test.cpp +++ b/test/is_arithmetic_test.cpp @@ -61,14 +61,14 @@ BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_arithmetic::value, t #ifdef BOOST_HAS_LONG_LONG -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_arithmetic::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_arithmetic::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_arithmetic::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_arithmetic::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_arithmetic::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_arithmetic::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_arithmetic::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_arithmetic::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_arithmetic< ::boost::ulong_long_type>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_arithmetic< ::boost::long_long_type>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_arithmetic< ::boost::ulong_long_type const>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_arithmetic< ::boost::long_long_type const>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_arithmetic< ::boost::ulong_long_type volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_arithmetic< ::boost::long_long_type volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_arithmetic< ::boost::ulong_long_type const volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_arithmetic< ::boost::long_long_type const volatile>::value, true); #endif diff --git a/test/is_fundamental_test.cpp b/test/is_fundamental_test.cpp index 0565c97..bf7fcbb 100644 --- a/test/is_fundamental_test.cpp +++ b/test/is_fundamental_test.cpp @@ -66,14 +66,14 @@ BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_fundamental::value, #ifdef BOOST_HAS_LONG_LONG -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_fundamental::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_fundamental::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_fundamental::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_fundamental::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_fundamental::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_fundamental::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_fundamental::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_fundamental::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_fundamental< ::boost::ulong_long_type>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_fundamental< ::boost::long_long_type>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_fundamental< ::boost::ulong_long_type const>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_fundamental< ::boost::long_long_type const>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_fundamental< ::boost::ulong_long_type volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_fundamental< ::boost::long_long_type volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_fundamental< ::boost::ulong_long_type const volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_fundamental< ::boost::long_long_type const volatile>::value, true); #endif diff --git a/test/is_integral_test.cpp b/test/is_integral_test.cpp index 88bec86..b589b5e 100644 --- a/test/is_integral_test.cpp +++ b/test/is_integral_test.cpp @@ -61,14 +61,14 @@ BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_integral::value, tru #ifdef BOOST_HAS_LONG_LONG -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_integral::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_integral::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_integral::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_integral::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_integral::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_integral::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_integral::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_integral::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_integral< ::boost::ulong_long_type>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_integral< ::boost::long_long_type>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_integral< ::boost::ulong_long_type const>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_integral< ::boost::long_long_type const>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_integral< ::boost::ulong_long_type volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_integral< ::boost::long_long_type volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_integral< ::boost::ulong_long_type const volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_integral< ::boost::long_long_type const volatile>::value, true); #endif diff --git a/test/is_pod_test.cpp b/test/is_pod_test.cpp index 65c4b3f..59523dd 100644 --- a/test/is_pod_test.cpp +++ b/test/is_pod_test.cpp @@ -61,14 +61,14 @@ 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< ::boost::ulong_long_type>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod< ::boost::long_long_type>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod< ::boost::ulong_long_type const>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod< ::boost::long_long_type const>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod< ::boost::ulong_long_type volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod< ::boost::long_long_type volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod< ::boost::ulong_long_type const volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pod< ::boost::long_long_type const volatile>::value, true); #endif diff --git a/test/is_scalar_test.cpp b/test/is_scalar_test.cpp index e5e4ec2..49cdb0f 100644 --- a/test/is_scalar_test.cpp +++ b/test/is_scalar_test.cpp @@ -61,14 +61,14 @@ BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_scalar::value, true) #ifdef BOOST_HAS_LONG_LONG -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_scalar::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_scalar::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_scalar::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_scalar::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_scalar::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_scalar::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_scalar::value, true); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_scalar::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_scalar< ::boost::ulong_long_type>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_scalar< ::boost::long_long_type>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_scalar< ::boost::ulong_long_type const>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_scalar< ::boost::long_long_type const>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_scalar< ::boost::ulong_long_type volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_scalar< ::boost::long_long_type volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_scalar< ::boost::ulong_long_type const volatile>::value, true); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_scalar< ::boost::long_long_type const volatile>::value, true); #endif diff --git a/test/is_stateless_test.cpp b/test/is_stateless_test.cpp index 1c90b0c..8567d29 100644 --- a/test/is_stateless_test.cpp +++ b/test/is_stateless_test.cpp @@ -61,14 +61,14 @@ BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_stateless::value, fa #ifdef BOOST_HAS_LONG_LONG -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_stateless::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_stateless::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_stateless::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_stateless::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_stateless::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_stateless::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_stateless::value, false); -BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_stateless::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_stateless< ::boost::ulong_long_type>::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_stateless< ::boost::long_long_type>::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_stateless< ::boost::ulong_long_type const>::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_stateless< ::boost::long_long_type const>::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_stateless< ::boost::ulong_long_type volatile>::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_stateless< ::boost::long_long_type volatile>::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_stateless< ::boost::ulong_long_type const volatile>::value, false); +BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_stateless< ::boost::long_long_type const volatile>::value, false); #endif diff --git a/test/type_with_alignment_test.cpp b/test/type_with_alignment_test.cpp index 6ffafce..3e1f610 100644 --- a/test/type_with_alignment_test.cpp +++ b/test/type_with_alignment_test.cpp @@ -58,9 +58,9 @@ BOOST_CHECK(::tt::alignment_of< #ifdef BOOST_HAS_LONG_LONG BOOST_CHECK(::tt::alignment_of< ::tt::type_with_alignment< - ::tt::alignment_of::value + ::tt::alignment_of< ::boost::long_long_type>::value >::type - >::value == ::boost::alignment_of::value); + >::value == ::boost::alignment_of< ::boost::long_long_type>::value); #endif #ifdef BOOST_HAS_MS_INT64 BOOST_CHECK(::tt::alignment_of< @@ -152,7 +152,7 @@ BOOST_CHECK(::tt::is_pod< #ifdef BOOST_HAS_LONG_LONG BOOST_CHECK(::tt::is_pod< ::tt::type_with_alignment< - ::tt::alignment_of::value>::type + ::tt::alignment_of< ::boost::long_long_type>::value>::type >::value); #endif #ifdef BOOST_HAS_MS_INT64