Hi all,
what was the rationale to implement the class Disposable ?
And when should one use this class?
As I can see from the code:
template <class T>
inline Disposable<T>& Disposable<T>::operator=(const Disposable<T>& t) {
this->swap(const_cast<Disposable<T>&>(t));
return *this;
}
the user must supply a swap function to use the assign operator.
So the user can control what he/she wants to assign?
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users