[C++-sig] Re: implititly_convertible<>() difficulty

David Abrahams dave at boost-consulting.com
Thu Jul 31 01:49:07 CEST 2003


"Jonathan Brandmeyer" <jdbrandm at unity.ncsu.edu> writes:

> GCC rejected that with this error:
> tupletest.cpp: In function `void init_module_tuple_test()':
> tupletest.cpp:42: ambiguous overload for `boost::python::self_ns::self_t& +
>    boost::python::other<boost::python::tuple>' operator
> c:/msys/local/include/boost/python/operators.hpp:184: candidates are:
>    boost::python::detail::operator_<op_add, L, R>
>    boost::python::self_ns::operator+(const L&, const R&) [with L =
>    boost::python::self_ns::self_t, R =
>    boost::python::other<boost::python::tuple>]
> c:/msys/local/include/boost/python/object_operators.hpp:60:
>    boost::python::api::object boost::python::api::operator+(const L&, const
> R&)
>
>    [with L = boost::python::self_ns::self_t, R =
>    boost::python::other<boost::python::tuple>]

For recent GCCs, that should now be fixed in CVS.  The enclosed patch
should also address the problem

-------------- next part --------------
A non-text attachment was scrubbed...
Name: object_operators.hpp.patch
Type: text/x-patch
Size: 2800 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20030730/9de30264/attachment.bin>
-------------- next part --------------

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com


More information about the Cplusplus-sig mailing list