diff --git a/include/boost/type_traits/object_traits.hpp b/include/boost/type_traits/object_traits.hpp index 17290f6..50cc36f 100644 --- a/include/boost/type_traits/object_traits.hpp +++ b/include/boost/type_traits/object_traits.hpp @@ -300,7 +300,7 @@ public: }; #else // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION -#if defined(BOOST_MSVC6_MEMBER_TEMPLATES) || !defined(BOOST_NO_MEMBER_TEMPLATES) +#ifdef BOOST_MSVC6_MEMBER_TEMPLATES namespace detail{ @@ -377,7 +377,7 @@ public: #else template struct is_empty { enum{ value = BOOST_IS_EMPTY(T) }; }; -#endif // defined(BOOST_MSVC6_MEMBER_TEMPLATES) || !defined(BOOST_NO_MEMBER_TEMPLATES) +#endif // BOOST_MSVC6_MEMBER_TEMPLATES #endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION diff --git a/include/boost/type_traits/transform_traits.hpp b/include/boost/type_traits/transform_traits.hpp index 06171d8..2d2f8f2 100644 --- a/include/boost/type_traits/transform_traits.hpp +++ b/include/boost/type_traits/transform_traits.hpp @@ -69,7 +69,7 @@ struct add_reference template struct add_reference { typedef T& type; }; -#elif defined(BOOST_MSVC6_MEMBER_TEMPLATES) || !defined(BOOST_NO_MEMBER_TEMPLATES) +#elif defined(BOOST_MSVC6_MEMBER_TEMPLATES) namespace detail{ template diff --git a/tests/is_convertible_test.cpp b/tests/is_convertible_test.cpp index fe0f9d5..b62288d 100644 --- a/tests/is_convertible_test.cpp +++ b/tests/is_convertible_test.cpp @@ -44,7 +44,7 @@ int cpp_main(int argc, char* argv[]) value_test(true, (boost::is_convertible >::value)); value_test(true, (boost::is_convertible >::value)); -#if defined(BOOST_MSVC6_MEMBER_TEMPLATES) || !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) +#ifdef BOOST_MSVC6_MEMBER_TEMPLATES value_test(false, (boost::is_convertible::value)); value_test(false, (boost::is_convertible::value)); value_test(true, (boost::is_convertible::value));