diff --git a/call_traits_test.cpp b/call_traits_test.cpp index b99838c..5875517 100644 --- a/call_traits_test.cpp +++ b/call_traits_test.cpp @@ -204,7 +204,7 @@ int main(int argc, char *argv[ ]) c2(i); int* pi = &i; int a[2] = {1,2}; -#if (defined(BOOST_MSVC6_MEMBER_TEMPLATES) || !defined(BOOST_NO_MEMBER_TEMPLATES)) && !defined(__ICL) +#if defined(BOOST_MSVC6_MEMBER_TEMPLATES) && !defined(__ICL) call_traits_checker c3; c3(pi); call_traits_checker c4; @@ -240,7 +240,7 @@ int main(int argc, char *argv[ ]) type_test(int*&, boost::call_traits::reference) type_test(int*const&, boost::call_traits::const_reference) type_test(int*const, boost::call_traits::param_type) -#if defined(BOOST_MSVC6_MEMBER_TEMPLATES) || !defined(BOOST_NO_MEMBER_TEMPLATES) +#if defined(BOOST_MSVC6_MEMBER_TEMPLATES) type_test(int&, boost::call_traits::value_type) type_test(int&, boost::call_traits::reference) type_test(const int&, boost::call_traits::const_reference) @@ -388,7 +388,7 @@ void call_traits_test::assert_construct(typename boost::call_traits: template struct call_traits_test; template struct call_traits_test; template struct call_traits_test; -#if defined(BOOST_MSVC6_MEMBER_TEMPLATES) || !defined(BOOST_NO_MEMBER_TEMPLATES) +#if defined(BOOST_MSVC6_MEMBER_TEMPLATES) template struct call_traits_test; template struct call_traits_test; #if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) && !defined(__SUNPRO_CC) diff --git a/include/boost/detail/ob_call_traits.hpp b/include/boost/detail/ob_call_traits.hpp index 091eea3..918ea7b 100644 --- a/include/boost/detail/ob_call_traits.hpp +++ b/include/boost/detail/ob_call_traits.hpp @@ -33,7 +33,7 @@ namespace boost{ -#if defined(BOOST_MSVC6_MEMBER_TEMPLATES) || !defined(BOOST_NO_MEMBER_TEMPLATES) +#ifdef BOOST_MSVC6_MEMBER_TEMPLATES // // use member templates to emulate // partial specialisation: diff --git a/include/boost/detail/ob_compressed_pair.hpp b/include/boost/detail/ob_compressed_pair.hpp index d045d94..f8efbb1 100644 --- a/include/boost/detail/ob_compressed_pair.hpp +++ b/include/boost/detail/ob_compressed_pair.hpp @@ -38,7 +38,7 @@ namespace boost { -#if defined(BOOST_MSVC6_MEMBER_TEMPLATES) || !defined(BOOST_NO_MEMBER_TEMPLATES) +#ifdef BOOST_MSVC6_MEMBER_TEMPLATES // // use member templates to emulate // partial specialisation. Note that due to