Skip to content

Commit

Permalink
Avoid multiple default constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Feb 12, 2021
1 parent be968d4 commit c0a8391
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ql/experimental/averageois/averageoiscouponpricer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ namespace QuantLib {
class ArithmeticAveragedOvernightIndexedCouponPricer
: public FloatingRateCouponPricer {
public:
ArithmeticAveragedOvernightIndexedCouponPricer(
explicit ArithmeticAveragedOvernightIndexedCouponPricer(
Real meanReversion = 0.03,
Real volatility = 0.00, // NO convexity adjustment by default
bool byApprox = false) // TRUE to use Katsumi Takada approximation
: byApprox_(byApprox), mrs_(meanReversion), vol_(volatility) {}

ArithmeticAveragedOvernightIndexedCouponPricer(
bool byApprox = false) // Simplified constructor assuming no convexity correction
explicit ArithmeticAveragedOvernightIndexedCouponPricer(
bool byApprox) // Simplified constructor assuming no convexity correction
: ArithmeticAveragedOvernightIndexedCouponPricer(0.03, 0.0, byApprox) {}

void initialize(const FloatingRateCoupon& coupon) override;
Expand Down

0 comments on commit c0a8391

Please sign in to comment.