From ade195b9acb2d12b99d84000761d67e2120205f8 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Thu, 24 May 2001 17:55:28 +0000 Subject: [PATCH] BOOST_NO_FRIEND_KOENIG_LOOKUP for vc60, tru64_cxx, irix_CC, linux_gcc [SVN r10219] --- include/boost/python/detail/config.hpp | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/include/boost/python/detail/config.hpp b/include/boost/python/detail/config.hpp index 348bcc39..35447645 100644 --- a/include/boost/python/detail/config.hpp +++ b/include/boost/python/detail/config.hpp @@ -7,6 +7,7 @@ // producing this work. // Revision History: +// 24 May 01 friend lookup fixes (Ralf W. Grosse-Kunstleve) // 04 Mar 01 Some fixes so it will compile with Intel C++ (Dave Abrahams) #ifndef CONFIG_DWA052200_H_ @@ -24,14 +25,27 @@ # endif -# if defined(BOOST_PYTHON_USE_FRIEND_KOENIG_LOOKUP) -// for compilers that support Koenig lookup -# define BOOST_PYTHON_BEGIN_CONVERSION_NAMESPACE namespace boost { namespace python { -# define BOOST_PYTHON_END_CONVERSION_NAMESPACE }} // namespace boost::python -# else +# if defined(__GNUC__) && __GNUC__ < 3 +# define BOOST_NO_FRIEND_KOENIG_LOOKUP +# endif +# if defined(BOOST_MSVC) && BOOST_MSVC <= 1200 +# define BOOST_NO_FRIEND_KOENIG_LOOKUP +# endif +# if defined(__DECCXX_VER) && __DECCXX_VER <= 60290024 +# define BOOST_NO_FRIEND_KOENIG_LOOKUP +# endif +#if defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730 +# define BOOST_NO_FRIEND_KOENIG_LOOKUP +# endif + +# if defined(BOOST_NO_FRIEND_KOENIG_LOOKUP) // for compilers that do not support Koenig lookup for friend functions # define BOOST_PYTHON_BEGIN_CONVERSION_NAMESPACE # define BOOST_PYTHON_END_CONVERSION_NAMESPACE +# else +// for compilers that support Koenig lookup +# define BOOST_PYTHON_BEGIN_CONVERSION_NAMESPACE namespace boost { namespace python { +# define BOOST_PYTHON_END_CONVERSION_NAMESPACE }} // namespace boost::python # endif // Work around the broken library implementation/strict ansi checking on some