Re: Handle & type casting
Posted by
Luigi Ballabio on
Feb 28, 2008; 12:49pm
URL: http://quantlib.414.s1.nabble.com/Handle-type-casting-tp11733p11734.html
On Thu, 2008-02-28 at 12:43 +0000, Simon Ibbotson wrote:
> Would anyone mind if I changed the Handle::Link class to allow dynamic
> typecasting of Handles / RelinkableHandles? It would mean adding a
> shared pointer for a helper class that would be notified when the
> Handle::Link class was deleted (only if a typecast had occurred).
Simon,
I'm afraid I'm not getting what you mean. Do you have an example?
Luigi
--
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.
-- Brian W. Kernighan
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev