|
|
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
|
|