Re: Copy issues
Posted by
Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Copy-issues-tp16026p16057.html
Hello Stefano,
you're correct on both counts. The copy constructor of PiecewiseYieldCurve will just perform a shallow copy. If you want to perform comparisons, you're better off building two identical curves. And if you copy a RateHelper, you're just copying the Handle, so the copy will still point to the same discounting curve. That's part of the point of using the Handle: if the curve changes, all the helpers can see the change.
Luigi
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users