Forked from
Core Modules / dune-common
Source project has a limited visibility.
-
Martin Nolte authored
SmartPtr< T > is similar to shared_ptr< T > in its intention. However, it demands methods addReference and removeReference on the object it points to. Actually, you could implement shared_ptr< T > through a SmartPtr< RefCountWrapper< T > > and a few cast operators. [[Imported from SVN: r6919]]
Martin Nolte authoredSmartPtr< T > is similar to shared_ptr< T > in its intention. However, it demands methods addReference and removeReference on the object it points to. Actually, you could implement shared_ptr< T > through a SmartPtr< RefCountWrapper< T > > and a few cast operators. [[Imported from SVN: r6919]]