|
From: <Fra...@ca...> - 2006-05-16 17:53:23
|
=20
Hi all,
=20
I have found something that seems to be a bug in the disposable =
Disposable Class Template. Indeed, the following constructor destroys =
the non disposable object t given as argument: =
(ql/Utilities/disposable.hpp =
<mk:@MSITStore:C:\Program%20Files\Quantlib\QuantLib-0.3.12\Docs\QuantLib_=
cpp-3.12.chm::/disposable_8hpp-source.html> line 74 to 77)
template <class T>
inline Disposable<T>::Disposable(T& t) {
this->swap(t);
}
=20
To my point of view this behaviour is not consistent with the original =
Luigi's proposal. By the way, this "bug" is corrected in the code =
excerpts featured in the QuEP9.
=20
Best regards,
=20
Fran=E7ois
=20
|