Re: [Quantlib-users] Question about copy constructors

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: [Quantlib-users] Question about copy constructors

Chuck Hinman
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.