Re: [QuantLib-svn] SF.net SVN: quantlib:[17107] trunk/QuantLib/ql/cashflows

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: [QuantLib-svn] SF.net SVN: quantlib:[17107] trunk/QuantLib/ql/cashflows

Luigi Ballabio
On Tue, 2010-02-16 at 19:20 +0000, [hidden email] wrote:
> Revision: 17107
>           http://quantlib.svn.sourceforge.net/quantlib/?rev=17107&view=rev
> Author:   nando
> Date:     2010-02-16 19:20:57 +0000 (Tue, 16 Feb 2010)
>
> Log Message:
> -----------
> added XXX::operator boost::shared_ptr<Leg>() const

Why? Leg is not polymorphic (it's a std::vector), and shared_ptr<Leg> is
not used anywhere in the library (I'd probably remove it if it was :)

Luigi


--

I am extraordinarily patient, provided I get my own way in the end.
-- Margaret Thatcher



------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: [QuantLib-svn] SF.net SVN: quantlib:[17107] trunk/QuantLib/ql/cashflows

Ferdinando M. Ametrano-3
On Wed, Feb 17, 2010 at 10:21 AM, Luigi Ballabio
<[hidden email]> wrote:
> On Tue, 2010-02-16 at 19:20 +0000, [hidden email] wrote:
>> added XXX::operator boost::shared_ptr<Leg>() const
>
> Why? Leg is not polymorphic (it's a std::vector), and shared_ptr<Leg> is
> not used anywhere in the library (I'd probably remove it if it was :)

you're right, my fault: reverted.

thank you

ciao -- Nando

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev