Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86066 - in trunk/boost/python: . object
From: steveire_at_[hidden]
Date: 2013-09-30 11:58:19


Author: skelly
Date: 2013-09-30 11:58:19 EDT (Mon, 30 Sep 2013)
New Revision: 86066
URL: http://svn.boost.org/trac/boost/changeset/86066

Log:
Python: Remove obsolete GCC version checks.

Text files modified:
   trunk/boost/python/class.hpp | 3 +--
   trunk/boost/python/copy_const_reference.hpp | 2 +-
   trunk/boost/python/copy_non_const_reference.hpp | 2 +-
   trunk/boost/python/default_call_policies.hpp | 2 +-
   trunk/boost/python/manage_new_object.hpp | 2 +-
   trunk/boost/python/object/pointer_holder.hpp | 6 +-----
   trunk/boost/python/object/value_holder.hpp | 6 +-----
   trunk/boost/python/object_core.hpp | 14 --------------
   trunk/boost/python/reference_existing_object.hpp | 2 +-
   trunk/boost/python/return_arg.hpp | 2 +-
   trunk/boost/python/return_internal_reference.hpp | 2 +-
   trunk/boost/python/to_python_value.hpp | 5 -----
   trunk/boost/python/type_id.hpp | 3 +--
   13 files changed, 11 insertions(+), 40 deletions(-)

Modified: trunk/boost/python/class.hpp
==============================================================================
--- trunk/boost/python/class.hpp Mon Sep 30 11:57:49 2013 (r86065)
+++ trunk/boost/python/class.hpp 2013-09-30 11:58:19 EDT (Mon, 30 Sep 2013) (r86066)
@@ -45,8 +45,7 @@
 # if BOOST_WORKAROUND(__MWERKS__, <= 0x3004) \
     /* pro9 reintroduced the bug */ \
     || (BOOST_WORKAROUND(__MWERKS__, > 0x3100) \
- && BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3201))) \
- || BOOST_WORKAROUND(__GNUC__, < 3)
+ && BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3201)))
 
 # define BOOST_PYTHON_NO_MEMBER_POINTER_ORDERING 1
 

Modified: trunk/boost/python/copy_const_reference.hpp
==============================================================================
--- trunk/boost/python/copy_const_reference.hpp Mon Sep 30 11:57:49 2013 (r86065)
+++ trunk/boost/python/copy_const_reference.hpp 2013-09-30 11:58:19 EDT (Mon, 30 Sep 2013) (r86066)
@@ -16,7 +16,7 @@
 {
   template <class R>
   struct copy_const_reference_expects_a_const_reference_return_type
-# if defined(__GNUC__) && __GNUC__ >= 3 || defined(__EDG__)
+# if defined(__GNUC__) || defined(__EDG__)
   {}
 # endif
   ;

Modified: trunk/boost/python/copy_non_const_reference.hpp
==============================================================================
--- trunk/boost/python/copy_non_const_reference.hpp Mon Sep 30 11:57:49 2013 (r86065)
+++ trunk/boost/python/copy_non_const_reference.hpp 2013-09-30 11:58:19 EDT (Mon, 30 Sep 2013) (r86066)
@@ -16,7 +16,7 @@
 {
   template <class R>
   struct copy_non_const_reference_expects_a_non_const_reference_return_type
-# if defined(__GNUC__) && __GNUC__ >= 3 || defined(__EDG__)
+# if defined(__GNUC__) || defined(__EDG__)
   {}
 # endif
   ;

Modified: trunk/boost/python/default_call_policies.hpp
==============================================================================
--- trunk/boost/python/default_call_policies.hpp Mon Sep 30 11:57:49 2013 (r86065)
+++ trunk/boost/python/default_call_policies.hpp 2013-09-30 11:58:19 EDT (Mon, 30 Sep 2013) (r86066)
@@ -23,7 +23,7 @@
 {
 // for "readable" error messages
   template <class T> struct specify_a_return_value_policy_to_wrap_functions_returning
-# if defined(__GNUC__) && __GNUC__ >= 3 || defined(__EDG__)
+# if defined(__GNUC__) || defined(__EDG__)
   {}
 # endif
   ;

Modified: trunk/boost/python/manage_new_object.hpp
==============================================================================
--- trunk/boost/python/manage_new_object.hpp Mon Sep 30 11:57:49 2013 (r86065)
+++ trunk/boost/python/manage_new_object.hpp 2013-09-30 11:58:19 EDT (Mon, 30 Sep 2013) (r86066)
@@ -17,7 +17,7 @@
 {
   template <class R>
   struct manage_new_object_requires_a_pointer_return_type
-# if defined(__GNUC__) && __GNUC__ >= 3 || defined(__EDG__)
+# if defined(__GNUC__) || defined(__EDG__)
   {}
 # endif
   ;

Modified: trunk/boost/python/object/pointer_holder.hpp
==============================================================================
--- trunk/boost/python/object/pointer_holder.hpp Mon Sep 30 11:57:49 2013 (r86065)
+++ trunk/boost/python/object/pointer_holder.hpp 2013-09-30 11:58:19 EDT (Mon, 30 Sep 2013) (r86066)
@@ -46,11 +46,7 @@
 
 namespace boost { namespace python { namespace objects {
 
-# if BOOST_WORKAROUND(__GNUC__, == 2)
-# define BOOST_PYTHON_UNFORWARD_LOCAL(z, n, _) BOOST_PP_COMMA_IF(n) (typename unforward<A##n>::type)objects::do_unforward(a##n,0)
-# else
-# define BOOST_PYTHON_UNFORWARD_LOCAL(z, n, _) BOOST_PP_COMMA_IF(n) objects::do_unforward(a##n,0)
-# endif
+#define BOOST_PYTHON_UNFORWARD_LOCAL(z, n, _) BOOST_PP_COMMA_IF(n) objects::do_unforward(a##n,0)
 
 template <class Pointer, class Value>
 struct pointer_holder : instance_holder

Modified: trunk/boost/python/object/value_holder.hpp
==============================================================================
--- trunk/boost/python/object/value_holder.hpp Mon Sep 30 11:57:49 2013 (r86065)
+++ trunk/boost/python/object/value_holder.hpp 2013-09-30 11:58:19 EDT (Mon, 30 Sep 2013) (r86066)
@@ -33,11 +33,7 @@
 
 namespace boost { namespace python { namespace objects {
 
-# if BOOST_WORKAROUND(__GNUC__, == 2)
-# define BOOST_PYTHON_UNFORWARD_LOCAL(z, n, _) BOOST_PP_COMMA_IF(n) (typename unforward<A##n>::type)objects::do_unforward(a##n,0)
-# else
-# define BOOST_PYTHON_UNFORWARD_LOCAL(z, n, _) BOOST_PP_COMMA_IF(n) objects::do_unforward(a##n,0)
-# endif
+#define BOOST_PYTHON_UNFORWARD_LOCAL(z, n, _) BOOST_PP_COMMA_IF(n) objects::do_unforward(a##n,0)
 
 template <class Value>
 struct value_holder : instance_holder

Modified: trunk/boost/python/object_core.hpp
==============================================================================
--- trunk/boost/python/object_core.hpp Mon Sep 30 11:57:49 2013 (r86065)
+++ trunk/boost/python/object_core.hpp 2013-09-30 11:58:19 EDT (Mon, 30 Sep 2013) (r86066)
@@ -238,23 +238,9 @@
   template <class T>
   typename objects::unforward_cref<T>::type do_unforward_cref(T const& x)
   {
-# if BOOST_WORKAROUND(__GNUC__, == 2)
- typedef typename objects::unforward_cref<T>::type ret;
- return ret(x);
-# else
       return x;
-# endif
   }
 
-# if BOOST_WORKAROUND(__GNUC__, == 2)
- // GCC 2.x has non-const string literals; this hacks around that problem.
- template <unsigned N>
- char const (& do_unforward_cref(char const(&x)[N]) )[N]
- {
- return x;
- }
-# endif
-
   class object;
   
   template <class T>

Modified: trunk/boost/python/reference_existing_object.hpp
==============================================================================
--- trunk/boost/python/reference_existing_object.hpp Mon Sep 30 11:57:49 2013 (r86065)
+++ trunk/boost/python/reference_existing_object.hpp 2013-09-30 11:58:19 EDT (Mon, 30 Sep 2013) (r86066)
@@ -17,7 +17,7 @@
 {
   template <class R>
   struct reference_existing_object_requires_a_pointer_or_reference_return_type
-# if defined(__GNUC__) && __GNUC__ >= 3 || defined(__EDG__)
+# if defined(__GNUC__) || defined(__EDG__)
   {}
 # endif
   ;

Modified: trunk/boost/python/return_arg.hpp
==============================================================================
--- trunk/boost/python/return_arg.hpp Mon Sep 30 11:57:49 2013 (r86065)
+++ trunk/boost/python/return_arg.hpp 2013-09-30 11:58:19 EDT (Mon, 30 Sep 2013) (r86066)
@@ -29,7 +29,7 @@
 {
   template <std::size_t>
   struct return_arg_pos_argument_must_be_positive
-# if defined(__GNUC__) && __GNUC__ >= 3 || defined(__EDG__)
+# if defined(__GNUC__) || defined(__EDG__)
   {}
 # endif
   ;

Modified: trunk/boost/python/return_internal_reference.hpp
==============================================================================
--- trunk/boost/python/return_internal_reference.hpp Mon Sep 30 11:57:49 2013 (r86065)
+++ trunk/boost/python/return_internal_reference.hpp 2013-09-30 11:58:19 EDT (Mon, 30 Sep 2013) (r86066)
@@ -18,7 +18,7 @@
 {
   template <std::size_t>
   struct return_internal_reference_owner_arg_must_be_greater_than_zero
-# if defined(__GNUC__) && __GNUC__ >= 3 || defined(__EDG__)
+# if defined(__GNUC__) || defined(__EDG__)
   {}
 # endif
   ;

Modified: trunk/boost/python/to_python_value.hpp
==============================================================================
--- trunk/boost/python/to_python_value.hpp Mon Sep 30 11:57:49 2013 (r86065)
+++ trunk/boost/python/to_python_value.hpp 2013-09-30 11:58:19 EDT (Mon, 30 Sep 2013) (r86066)
@@ -147,11 +147,6 @@
   template <class T>
   inline PyObject* registry_to_python_value<T>::operator()(argument_type x) const
   {
- typedef converter::registered<argument_type> r;
-# if BOOST_WORKAROUND(__GNUC__, < 3)
- // suppresses an ICE, somehow
- (void)r::converters;
-# endif
       return converter::registered<argument_type>::converters.to_python(&x);
   }
 

Modified: trunk/boost/python/type_id.hpp
==============================================================================
--- trunk/boost/python/type_id.hpp Mon Sep 30 11:57:49 2013 (r86065)
+++ trunk/boost/python/type_id.hpp 2013-09-30 11:58:19 EDT (Mon, 30 Sep 2013) (r86066)
@@ -19,7 +19,6 @@
 
 # ifndef BOOST_PYTHON_HAVE_GCC_CP_DEMANGLE
 # if defined(__GNUC__) \
- && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1))) \
     && !defined(__EDG_VERSION__)
 # define BOOST_PYTHON_HAVE_GCC_CP_DEMANGLE
 # endif
@@ -30,7 +29,7 @@
 // for this compiler at least, cross-shared-library type_info
 // comparisons don't work, so use typeid(x).name() instead. It's not
 // yet clear what the best default strategy is.
-# if (defined(__GNUC__) && __GNUC__ >= 3) \
+# if defined(__GNUC__) \
  || defined(_AIX) \
  || ( defined(__sgi) && defined(__host_mips)) \
  || (defined(__hpux) && defined(__HP_aCC)) \


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk