Hi,
Simply you can't do it. They are completle different smart pointers. shared_ptr
has outside reference counting and ref_ptr has inside reference counting in
osg::Referenced class. Basically you would need to call ref() everytime you
create or copy shared_ptr and call unref()
the osg::ref_ptr<> could be wrapped into a smart pointer, right? But what's
the point ;)
2016-04-07 10:33 GMT+02:00 Sebastian Messerschmidt <
sebastian.messerschm...@gmx.de>:
> Hi Vincent,
>
>> Hello
>>
>> I'm trying to use osg:Vec3Array with a c++11 smart pointer instead of osg
>> smart
Hi Vincent,
Hello
I'm trying to use osg:Vec3Array with a c++11 smart pointer instead of osg smart
pointer. I aim to join two APIs: osg and another one using C++11 smart pointer.
Apparently, this is a destructor problem: ~TemplateArray<>() is private, so an
explicit delete doesn't work. I
Hello
I'm trying to use osg:Vec3Array with a c++11 smart pointer instead of osg smart
pointer. I aim to join two APIs: osg and another one using C++11 smart pointer.
Apparently, this is a destructor problem: ~TemplateArray<>() is private, so an
explicit delete doesn't work. I have test many
4 matches
Mail list logo