Question about class Disposable
Posted by
Kim Kuen Tang on
Jun 13, 2008; 9:24pm
URL: http://quantlib.414.s1.nabble.com/Question-about-class-Disposable-tp6246.html
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