Posted by
Luigi Ballabio on
Feb 28, 2008; 4:39pm
URL: http://quantlib.414.s1.nabble.com/Handle-type-casting-tp11733p11738.html
On Thu, 2008-02-28 at 13:49 +0000, Simon Ibbotson wrote:
> If the new object is of type T3 (not inherited from type T2, but is
> inherited from type T1), then the dynamic cast to type T2 fails and the
> pointer is set to NULL.
I see. I still fail to see a use case, but no doubt you have one.
Ok, send me the implementation if you have it---I'll have a look at it.
Luigi
--
All parts should go together without forcing. You must remember that
the parts you are reassembling were disassembled by you. Therefore, if
you can't get them together again, there must be a reason. By all
means, do not use a hammer.
-- IBM maintenance manual, 1925
-------------------------------------------------------------------------
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