From 4a0d7965cb13fe6c2fef6da5c56191131bc84fb9 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Mon, 15 Dec 2003 17:55:38 +0000 Subject: [PATCH] consolidation of workarounds for missing "not" keyword [SVN r21276] --- test/operators.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/operators.cpp b/test/operators.cpp index c6aa6991..153ceda9 100755 --- a/test/operators.cpp +++ b/test/operators.cpp @@ -21,7 +21,9 @@ #if BOOST_WORKAROUND(BOOST_MSVC, == 1310) // vc7.1 seems to require this (incorrectly) in order to use the "not" keyword #include -#elif BOOST_WORKAROUND(__EDG_VERSION__, <= 238) +#elif BOOST_WORKAROUND(BOOST_MSVC, <= 1300) \ + || BOOST_WORKAROUND(__GNUC__, <= 2) \ + || BOOST_WORKAROUND(__EDG_VERSION__, <= 238) #define not ! #endif @@ -91,11 +93,7 @@ BOOST_PYTHON_MODULE(operators_ext) .def(pow(self,self)) .def(pow(self,int())) .def(pow(int(),self)) -#if BOOST_WORKAROUND(BOOST_MSVC, <= 1300) || BOOST_WORKAROUND(__GNUC__, <= 2) - .def(!self) // it doesn't know about the "not" keyword! -#else .def(not self) -#endif ; class_ >("Z", init())