Login  Register

Re: [QuantLib-svn] SF.net SVN: quantlib: [13854] trunk/QuantLib/ql/interestrate.hpp

Posted by Luigi Ballabio on Dec 20, 2007; 10:11pm
URL: http://quantlib.414.s1.nabble.com/Re-QuantLib-svn-SF-net-SVN-quantlib-13854-trunk-QuantLib-ql-interestrate-hpp-tp11510.html


On Dec 19, 2007, at 8:02 PM, [hidden email] wrote:

> Log Message:
> -----------
> added default parameters
>
> @@ -45,8 +45,8 @@
>          InterestRate();
>          //! Standard constructor
>          InterestRate(Rate r,
> -                     const DayCounter& dc,
> -                     Compounding comp,
> +                     const DayCounter& dc = Actual365Fixed(),
> +                     Compounding comp = Continuous,
>                       Frequency freq = Annual);
>          //@}
>          //! \name conversions

Nando,
        somehow I can see that the compounding may default to Continuous, but
why should the day-count convention default to actual/365?

Later,
        Luigi


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev