Re: ObjectHandler 0.9.7
Posted by
Eric Ehlers-2 on
Jan 26, 2009; 12:58pm
URL: http://quantlib.414.s1.nabble.com/ObjectHandler-0-9-7-tp7122p7127.html
Hi Andrew,
On Fri, 2009-01-23 at 07:29 -0800, Andrew Kolesnikov wrote:
> All that i want to know: is it better to use pointer to interpolated curve
> now? So, regarding to my example
>
> MyClass::MyClass(
> const boost::shared_ptr DiscountCurve& yieldCurve,
> .......) : yieldCurve_(yieldCurve),...
>
> is prefer than simple
>
> MyClass::MyClass(
> const DiscountCurve& yieldCurve,
> .......) :yieldCurve_(yieldCurve),.... (if noncopable is deleted)???
Even knowing nothing further about your implementation, I think it's
safe to say that passing a boost shared pointer is better than deleting
the noncopyable restriction and relying on the broken copy behavior.
Regards,
Eric
===================================================
Eric Ehlers
nazcatech sprl | Brussels |
http://www.nazcatech.be* Distributed computing for pricing analytics
* Use Microsoft Excel as a client to the Grid
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users