Posted by
Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Re-QuantLib-svn-SF-net-SVN-quantlib-16477-trunk-QuantLib-tp12995p12997.html
On Fri, 2009-09-18 at 11:46 +0200, Ferdinando Ametrano wrote:
> On Wed, Sep 16, 2009 at 4:21 PM, Luigi Ballabio
> <
[hidden email]> wrote:
> >> switched from vector<InterestRate> to vector<shared_prt<InterestRate> >
> >
> > Good grief. Why?
>
> I was plannig to restore vector<InterestRate> along with
> vector<shared_prt<InterestRate> >, but I've seen you already reverted
> my changes.
> Any objection if I add back vector<shared_prt<InterestRate> > ?
Yes, InterestRate is not polymorphic. It would make as little sense as
vector<shared_ptr<Date> >. I'd rather fix QuantLibAddin so that the
generated code expects the correct type (or, as Piter did, modify the
qla-object constructor so that it performs the conversion.)
Luigi
--
It is better to know some of the questions than all of the answers.
-- James Thurber
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev