Ticket #8888: 0001-python-Drop-backward-compatible-support-in-to_python.patch

File 0001-python-Drop-backward-compatible-support-in-to_python.patch, 1.0 KB (added by Petr Machata <pmachata@…>, 9 years ago)

This replaces my original patch--the whole block can be removed, as since recently, Boost assumes GCC >= 3.

  • boost/python/to_python_value.hpp

    From c6232152bbdb9597e30ff56ec8687876eb0adbc9 Mon Sep 17 00:00:00 2001
    From: Petr Machata <pmachata@redhat.com>
    Date: Thu, 5 Sep 2013 23:15:23 +0200
    Subject: [PATCH 1/3] [python] Drop backward-compatible support in
     to_python_value.hpp
    
    - As per the discussion on Boost mailing list from 31 Jul 2013,
      GCC >= 3.0 is now base requirement for boost.
    ---
     boost/python/to_python_value.hpp |    5 -----
     1 files changed, 0 insertions(+), 5 deletions(-)
    
    diff --git a/boost/python/to_python_value.hpp b/boost/python/to_python_value.hpp
    index a48948d..aaabb9c 100644
    a b namespace detail  
    147147  template <class T>
    148148  inline PyObject* registry_to_python_value<T>::operator()(argument_type x) const
    149149  {
    150       typedef converter::registered<argument_type> r;
    151 # if BOOST_WORKAROUND(__GNUC__, < 3)
    152       // suppresses an ICE, somehow
    153       (void)r::converters;
    154 # endif
    155150      return converter::registered<argument_type>::converters.to_python(&x);
    156151  }
    157152