[Boost-bugs] [Boost C++ Libraries] #6890: BOOST_PYTHON_FORWARD_OBJECT_CONSTRUCTORS_ should use ::boost::python

Subject: [Boost-bugs] [Boost C++ Libraries] #6890: BOOST_PYTHON_FORWARD_OBJECT_CONSTRUCTORS_ should use ::boost::python
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-05-11 10:32:44


#6890: BOOST_PYTHON_FORWARD_OBJECT_CONSTRUCTORS_ should use ::boost::python
-----------------------+----------------------------------------------------
 Reporter: anonymous | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.46.1
 Severity: Problem | Keywords: boost::python::object
-----------------------+----------------------------------------------------
 # define BOOST_PYTHON_FORWARD_OBJECT_CONSTRUCTORS_(derived, base) \
     inline explicit derived(python::detail::borrowed_reference p) \
         : base(p) {} \
     inline explicit derived(python::detail::new_reference p) \
         : base(p) {} \
     inline explicit derived(python::detail::new_non_null_reference p) \
         : base(p) {}

 should be

 # define BOOST_PYTHON_FORWARD_OBJECT_CONSTRUCTORS_(derived, base)
 \
     inline explicit derived(::boost::python::detail::borrowed_reference p)
 \
         : base(p) {}
 \
     inline explicit derived(::boost::python::detail::new_reference p)
 \
         : base(p) {}
 \
     inline explicit
 derived(::boost::python::detail::new_non_null_reference p) \
         : base(p) {}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6890>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC