[C++-sig] Re: Problem with std::vector<boost::python::object>

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


David Abrahams <dave at boost-consulting.com> writes:

> A number of obscure reasons having to do with argument-dependent
> lookup and the templated operators on boost::python::object
> contribute.
>
> A fix is possible by using 
>
>      enable_if<mpl::or_<is_object<x>, is_object<y> >, ...>
>
> to restrict the templated operators' applicability.  Patches welcomed.

I have now made the fix in the CVS; you can also apply the enclosed
patch.  Please let me know if it fails for you.

-------------- 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/292616bc/attachment.bin>
-------------- next part --------------

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


More information about the Cplusplus-sig mailing list