[C++-sig] Methods returning *this
Piotr Jaroszynski
p.jaroszynski at gmail.com
Sun Apr 15 13:05:00 CEST 2007
On Sunday 15 of April 2007 05:56:38 Roman Yakovenko wrote:
> return_self:
> http://boost.org/libs/python/doc/v2/return_arg.html#return_self-spec
Thank you very much, worked! Btw. the example in the spec makes a good job in
hiding where this policy is really needed.
> by the way segfault could be caused by the function too and may be has
> nothing to do with boost.python
Yeah, I know, but the function call was "working", the segfault occurred only
after when trying to access one of the object attributes, so I figured out
that must be something with policies :]
--
Best Regards,
Piotr Jaroszynski
More information about the Cplusplus-sig
mailing list