|
From: Luigi B. <lui...@gm...> - 2009-09-18 10:12:20
|
On Fri, 2009-09-18 at 11:46 +0200, Ferdinando Ametrano wrote: > On Wed, Sep 16, 2009 at 4:21 PM, Luigi Ballabio > <lui...@gm...> 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 |