Login  Register

Re: [Quantlib-users] Question about copy constructors

Posted by Chuck Hinman on Sep 19, 2005; 2:02pm
URL: http://quantlib.414.s1.nabble.com/Re-Quantlib-users-Question-about-copy-constructors-tp10867.html

Luigi said:

In the meantime, a workaround you can use is to clone the term  
structure yourself. If you have a PiecewiseYieldCurve or  
PiecewiseFlatForward instance (depending on how you store them, you  
might have to downcast a YieldTermStructure) you can do it as follows:
...

Chuck says:
Thank you Luigi for your cloning explanation. We want a curve clone that is disconnected from changing quotes. I will try your algorithm. I had not previously read the discountcurve.hpp file. It looks quite useful.