c++-sig@python.org
[Top] [All Lists]

Re: [C++-sig] Trouble choosing boost python policy

Subject: Re: [C++-sig] Trouble choosing boost python policy
From: "Roman Yakovenko"
Date: Thu, 31 Aug 2006 20:37:20 +0300
On 8/31/06, Eduardo Picado <eduardo.picado@xxxxxxxxx> wrote:
> Hi,
>
> I'm wrapping the following function:
>
>
>
>  /**
>   * System retrieving.
>   * \throw std::bad_alloc memory allocation error.
>   * \return a reference to the system associated to the calling process.
>   */
>   static TASRSystem & getASRSystem() throw (std::bad_alloc);
>
>
>
> Which policy should I choose?

The only way to answer this question is to see function implementation.
If getASRSystem is reference to some kind of single tone, than
return_value_policy<reference_existing_object> should work.



-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
_______________________________________________
C++-sig mailing list
C++-sig@xxxxxxxxxx
http://mail.python.org/mailman/listinfo/c++-sig

<Prev in Thread] Current Thread [Next in Thread>