[C++-sig] Converter with return_value_policy<manage_new_object> semantics...

Roman Yakovenko roman.yakovenko at gmail.com
Thu Aug 3 22:04:33 CEST 2006


On 8/3/06, Kevin Jones <investtcartier at yahoo.com> wrote:
> Hi all,
>
> I have a function T foo(). The problem is that T is a
> variant type and by default is being converted to a
> python object using my supplied converter.
>
> I would like to rewrite the converter to use
> return_value_policy<manage_new_object> semantics on a
> case by case basis for each variant type.
>
> Any suggestions?

You can create custom call policies.


-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the Cplusplus-sig mailing list