[C++-sig] boost.python: private copy constructor problem

Marcus Lindblom macke at yar.nu
Tue Dec 2 15:15:23 CET 2008


Mihail Konstantinov wrote:
>> Stefan Seefeld wrote:
> 
>> In this case you want to tell Python that your object is non-copyable:
> 
> I followed your suggestion and still get the same error message:

[snip]

> /home/mihail/temporary/boost_1_37_0/boost/python/object/value_holder.hpp: In constructor ‘boost::python::objects::value_holder<Value>::value_holder(PyObject*, A0) [with A0 = boost::reference_wrapper<const B>, Value = B]’:
> /home/mihail/temporary/boost_1_37_0/boost/python/object/value_holder.hpp:134: note: synthesized method ‘B::B(const B&)’ first required here 

Seems like B needs to be noncopyable too?

/Marcus


More information about the Cplusplus-sig mailing list