diff --git a/include/boost/type_traits/arithmetic_traits.hpp b/include/boost/type_traits/arithmetic_traits.hpp index 45eed5a..1d111c4 100644 --- a/include/boost/type_traits/arithmetic_traits.hpp +++ b/include/boost/type_traits/arithmetic_traits.hpp @@ -66,7 +66,7 @@ template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; -#elif (defined(BOOST_MSVC) && (BOOST_MSVC >= 1100)) || (defined(__BORLANDC__) && (__BORLANDC__ >= 0x520)) +#elif defined(BOOST_HAS_MS_INT64) template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; template <> struct is_integral<__int64> @@ -126,7 +126,7 @@ template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; -#elif (defined(BOOST_MSVC) && (BOOST_MSVC >= 1100)) || (defined(__BORLANDC__) && (__BORLANDC__ >= 0x520)) +#elif defined(BOOST_HAS_MS_INT64) template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; template <> struct is_integral @@ -171,7 +171,7 @@ template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; -#elif (defined(BOOST_MSVC) && (BOOST_MSVC >= 1100)) || (defined(__BORLANDC__) && (__BORLANDC__ >= 0x520)) +#elif defined(BOOST_HAS_MS_INT64) template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; template <> struct is_integral @@ -216,7 +216,7 @@ template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; -#elif (defined(BOOST_MSVC) && (BOOST_MSVC >= 1100)) || (defined(__BORLANDC__) && (__BORLANDC__ >= 0x520)) +#elif defined(BOOST_HAS_MS_INT64) template <> struct is_integral { BOOST_STATIC_CONSTANT(bool, value = true); }; template <> struct is_integral diff --git a/tests/arithmetic_traits_test.cpp b/tests/arithmetic_traits_test.cpp index e3259d9..4e888cc 100644 --- a/tests/arithmetic_traits_test.cpp +++ b/tests/arithmetic_traits_test.cpp @@ -59,7 +59,7 @@ int cpp_main(int argc, char* argv[]) value_test(true, boost::is_integral::value) value_test(true, boost::is_integral::value) #endif - #if defined(__BORLANDC__) || defined(_MSC_VER) + #if defined(BOOST_HAS_MS_INT64) value_test(true, boost::is_integral<__int64>::value) value_test(true, boost::is_integral::value) #endif @@ -79,7 +79,7 @@ int cpp_main(int argc, char* argv[]) value_test(true, boost::is_integral::value) value_test(true, boost::is_integral::value) #endif - #if defined(__BORLANDC__) || defined(_MSC_VER) + #if defined(BOOST_HAS_MS_INT64) value_test(true, boost::is_integral::value) value_test(true, boost::is_integral::value) #endif @@ -99,7 +99,7 @@ int cpp_main(int argc, char* argv[]) value_test(true, boost::is_integral::value) value_test(true, boost::is_integral::value) #endif - #if defined(__BORLANDC__) || defined(_MSC_VER) + #if defined(BOOST_HAS_MS_INT64) value_test(true, boost::is_integral::value) value_test(true, boost::is_integral::value) #endif @@ -119,7 +119,7 @@ int cpp_main(int argc, char* argv[]) value_test(true, boost::is_integral::value) value_test(true, boost::is_integral::value) #endif - #if defined(__BORLANDC__) || defined(_MSC_VER) + #if defined(BOOST_HAS_MS_INT64) value_test(true, boost::is_integral::value) value_test(true, boost::is_integral::value) #endif @@ -162,7 +162,7 @@ int cpp_main(int argc, char* argv[]) value_test(true, boost::is_arithmetic::value) value_test(true, boost::is_arithmetic::value) #endif - #if defined(__BORLANDC__) || defined(_MSC_VER) + #if defined(BOOST_HAS_MS_INT64) value_test(true, boost::is_arithmetic<__int64>::value) value_test(true, boost::is_arithmetic::value) #endif @@ -189,7 +189,7 @@ int cpp_main(int argc, char* argv[]) value_test(true, boost::is_fundamental::value) value_test(true, boost::is_fundamental::value) #endif - #if defined(__BORLANDC__) || defined(_MSC_VER) + #if defined(BOOST_HAS_MS_INT64) value_test(true, boost::is_fundamental<__int64>::value) value_test(true, boost::is_fundamental::value) #endif