Hey,

yes - that's what happening when shared_ptr is created/copied/destroyed.
But shared_ptr does that automatically.

It is legacy indeed but we first need to get SWIG + shared_ptr working
nicely together - we had no such experience yet.

Sergey

On Thu, Mar 17, 2016 at 2:32 PM, Heiko Strathmann <
[email protected]> wrote:

> Kind of, but old-school. We want to use shared_ptr at some point in the
> future.
> Sergey can elaborate
>
> 2016-03-01 2:18 GMT+00:00 Yukio Siraichi <[email protected]>:
>
>> Hello, everyone.
>>
>> I just started learning the shogun toolbox.
>> So, I read the documentation in which described the SG_REF() and
>> SG_UNREF() macros as the way to clean memory.
>>
>> My question is, are these macros equivalent to the std::shared_ptr?
>>
>> Thanks,
>>
>> Marcos
>>
>
>

Reply via email to