[C++-sig] Policies...

Roman Yakovenko roman.yakovenko at gmail.com
Sun Apr 22 22:37:37 CEST 2007


On 4/22/07, Piotr Jaroszynski <p.jaroszynski at gmail.com> wrote:
>
> Hello,
>
> I still have problems with choosing appropriate policies:
> class Foo {
>         private:
>                 std::tr1::shared_ptr<Blah> _blah;
>         (...)
>         public:
>                 std::tr1::shared_ptr<Blah> get_blah() {
>                         return _blah;
>                 }
> };
>
> What policy should I use for the get_blah function?


The default one. In this case you don't specify the call policy for the
function.

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20070422/9a859ba1/attachment.htm>


More information about the Cplusplus-sig mailing list