http://quantlib.414.s1.nabble.com/Passing-CubicSplines-tp4913p4916.html
interpolation object as well as the X and Y arrays. I can pass an object
created from this to my functions instead of the interpolation object alone.
out of scope, everything is destroyed.
Toy out.
>From: Luigi Ballabio <
[hidden email]>
>To: Ferdinando Ametrano <
[hidden email]>
>CC: Giancarlo Pfeifer
><
[hidden email]>,
[hidden email]
>Subject: Re: [Quantlib-users] Passing CubicSplines
>Date: Wed, 12 Jul 2006 11:43:36 +0200
>
>
>On 07/12/2006 10:30:22 AM, Ferdinando Ametrano wrote:
> > you're right: in the current design the interpolation classes do not
> > copy the x,y arrays, so it's up to the user to ensure they do not get
> > destroyed while still needed.
> > I'm not in favour of this behaviour, and this might change if Luigi
> > agrees.
>
>I'm not extremely happy about it either. On the other hand, storing
>iterators allows the interpolation to maintain a link to the original
>values and to update itself when they change; copying the values would
>prevent this.
>
>Luigi
>
>
>
>----------------------------------------
>
>The rule on staying alive as a forecaster is to give 'em a number or
>give 'em a date, but never give 'em both at once.
>-- Jane Bryant Quinn
>
>
>-------------------------------------------------------------------------
>Using Tomcat but need to do more? Need to support web services, security?
>Get stuff done quickly with pre-integrated technology to make your job
>easier
>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>_______________________________________________
>QuantLib-users mailing list
>
[hidden email]
>
https://lists.sourceforge.net/lists/listinfo/quantlib-users