Login  Register

Handle & type casting

Posted by Simon Ibbotson - Straumur on Feb 28, 2008; 12:43pm
URL: http://quantlib.414.s1.nabble.com/Handle-type-casting-tp11733.html

Hi guys,

 

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).

 

The performance overhead should be negligible and would allow typecasting of the underlying pointer while maintaining the link to the underlying object.

 

Cheers,

 

Simon

 

 

Simon Ibbotson

Head of Quantitative Analytics

Capital Markets

Straumur

 


-------------------------------------------------------------------------
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