[C++-sig] how to deep copy boost python object
Gennadiy Rozental
rogeeff at gmail.com
Tue May 5 22:39:28 CEST 2009
Neal Becker <ndbecker2 <at> gmail.com> writes:
>
> Gennadiy Rozental wrote:
>
> > This looks like trivial question from FAQ, but I can seem to fond the
> > answer.
> >
> > Any pointers?
> >
> > Genandiy
>
> Maybe overide __copy__?
How is it involved? Here is an example:
bp::object o = foo();
// Here i want to make deep copy of o
// bp::object o_copy = o is not correct
// what I need is something like:
bp::object o_copy = bp::deep_copy( o )
Gennadiy
More information about the Cplusplus-sig
mailing list