On Tuesday 03 September 2013 19:17:53 Olivier Goffart wrote: [...] > I would even go further and add conversions operators for STL compatibility: > > inline QScopePointer<T>::QScopePointer(std::unique_ptr<T> other) > inline QScopePointer<T>::operator std::unique_ptr<T>()
I obviously meant: inline QScopePointer<T>::QScopePointer(std::unique_ptr<T> &&other) inline QScopePointer<T>::operator std::unique_ptr<T>() && It should only work with rvalue reference. -- Olivier Woboq - Qt services and support - http://woboq.com - http://code.woboq.org _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
