From 34710e5c5d662a6514223aa572afe2443aa9f387 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Thu, 18 Oct 2001 11:33:52 +0000 Subject: [PATCH] Updated preprocessor logic to use BOOST_HAS_LONG_LONG [SVN r11399] --- .../boost/type_traits/arithmetic_traits.hpp | 22 ++++++++----------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/include/boost/type_traits/arithmetic_traits.hpp b/include/boost/type_traits/arithmetic_traits.hpp index bccac51..2436431 100644 --- a/include/boost/type_traits/arithmetic_traits.hpp +++ b/include/boost/type_traits/arithmetic_traits.hpp @@ -32,7 +32,7 @@ template struct is_void{ BOOST_STATIC_CONSTANT(bool, value = false) template <> struct is_void{ BOOST_STATIC_CONSTANT(bool, value = true); }; //* is a type T an [cv-qualified-] integral type described in the standard (3.9.1p3) -// as an extention we include long long, as this is likely to be added to the +// as an extention we include long long, as this is likely to be added to the // standard at a later date template struct is_integral { BOOST_STATIC_CONSTANT(bool, value = false); }; @@ -61,13 +61,12 @@ template <> struct is_integral template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; -# if (defined(ULLONG_MAX) || defined(ULONG_LONG_MAX)) +# if defined(BOOST_HAS_LONG_LONG) template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; -#endif -#if defined(__BORLANDC__) || defined(_MSC_VER) && !defined(__MWERKS__) +#elif defined(__BORLANDC__) || defined(_MSC_VER) template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; template <> struct is_integral<__int64> @@ -122,13 +121,12 @@ template <> struct is_integral template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; -# if (defined(ULLONG_MAX) || defined(ULONG_LONG_MAX)) +# if defined(BOOST_HAS_LONG_LONG) template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; -#endif // ULLONG_MAX -#if defined(__BORLANDC__) || defined(_MSC_VER) && !defined(__MWERKS__) +#elif defined(__BORLANDC__) || defined(_MSC_VER) template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; template <> struct is_integral @@ -168,13 +166,12 @@ template <> struct is_integral template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; -# if (defined(ULLONG_MAX) || defined(ULONG_LONG_MAX)) +# if defined(BOOST_HAS_LONG_LONG) template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; -#endif // ULLONG_MAX -#if defined(__BORLANDC__) || defined(_MSC_VER) && !defined(__MWERKS__) +#elif defined(__BORLANDC__) || defined(_MSC_VER) template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; template <> struct is_integral @@ -214,13 +211,12 @@ template <> struct is_integral template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; -# if (defined(ULLONG_MAX) || defined(ULONG_LONG_MAX)) +# if defined(BOOST_HAS_LONG_LONG) template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; -#endif // ULLONG_MAX -#if defined(__BORLANDC__) || defined(_MSC_VER) && !defined(__MWERKS__) +#elif defined(__BORLANDC__) || defined(_MSC_VER) template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; template <> struct is_integral