[C++-sig] Re: Boost.Python v2: reference-counting and user-friendly conversions
Dave Hawkes
daveh at cadlink.com
Fri Jun 14 03:02:15 CEST 2002
"Ralf W. Grosse-Kunstleve" <rwgk at yahoo.com> wrote in message
news:20020613234622.90035.qmail at web20203.mail.yahoo.com...
> Therefore ^^
>
> handle<> x(borrowed(PyTuple_GetItem(t, n)));
>
> seems much more intuitive to me.
>
That does seem to more explicitly state what is occuring. There could even
be a derived borrowed_handle class:
borrowed_handle<> x(PyTuple_GetItem(t, n));
Dave Hawkes
More information about the Cplusplus-sig
mailing list