The documentation points out (with very good reason) that just using
"::with_policies(bp::return_internal_reference)" can cause major
problems if the container in question reallocates things between the
time that you extract the object and the time you try to access it.
v = VectorofFoo()
v.extend
What is the right way to report error from the Boost.Python extension module
init function?
Gennadiy
___
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig
On Mon, Jul 27, 2009 at 7:29 PM, Matthew Scouten
(TT) wrote:
> The documentation points out (with very good reason) that just using
> "::with_policies(bp::return_internal_reference)" can cause major
> problems if the container in question reallocates things between the
> time that you extract the o