Re: [osg-users] Vec3Array instantiation

2016-04-07 Thread Filip Arlet
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()

Re: [osg-users] Vec3Array instantiation

2016-04-07 Thread Christian Buchner
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

Re: [osg-users] Vec3Array instantiation

2016-04-07 Thread Sebastian Messerschmidt
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