New shared pointer - revision 2
Stephan Kulow
coolo at kde.org
Sat Sep 10 09:00:15 BST 2005
Am Samstag, 10. September 2005 05:53 schrieb Thiago Macieira:
> Frerich Raabe wrote:
> >template <class T>
> >KSharedPtr<T>::KSharedPtr( const KSharedPtr<T> &other )
> >{
> > KSharedData *x = other.d;
> > x = qAtomicSetPtr( &d, x );
> > d->ref.ref();
> >}
>
> Perfect. Even better than what I had suggested. :-)
>
And now on to writing 20 unit tests :)
Greetings, Stephan
More information about the kde-core-devel
mailing list