From e27d0fcf2ac205343d1d472bad5239b8528b170c Mon Sep 17 00:00:00 2001 From: Darin Adler Date: Sat, 2 Feb 2002 18:36:12 +0000 Subject: [PATCH] New smart pointer documentation. Related clean-up of the smart pointer library. Changing includes to include the new individual smart pointer headers. Replacing old smart pointer library with an include of the new smart pointer headers. Simplify ifdefs that involve the member templates macros now that BOOST_MSVC6_MEMBER_TEMPLATES is also guaranteed to bet set for platforms that have full member templates. [SVN r12647] --- call_traits_test.cpp | 6 +++--- include/boost/detail/ob_call_traits.hpp | 2 +- include/boost/detail/ob_compressed_pair.hpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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