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