diff --git a/Examples/BermudanSwaption/BermudanSwaption.cpp b/Examples/BermudanSwaption/BermudanSwaption.cpp index 113b1f8a973..f59383b3f43 100644 --- a/Examples/BermudanSwaption/BermudanSwaption.cpp +++ b/Examples/BermudanSwaption/BermudanSwaption.cpp @@ -23,6 +23,7 @@ #if !defined(BOOST_ALL_NO_LIB) && defined(BOOST_MSVC) # include #endif +#include #include #include #include diff --git a/ql/cashflows/overnightindexedcoupon.cpp b/ql/cashflows/overnightindexedcoupon.cpp index 877ce8422b3..03c0af0a4b6 100644 --- a/ql/cashflows/overnightindexedcoupon.cpp +++ b/ql/cashflows/overnightindexedcoupon.cpp @@ -153,7 +153,7 @@ namespace QuantLib { overnightIndex, gearing, spread, refPeriodStart, refPeriodEnd, - dayCounter, false) { + dayCounter, false), averagingMethod_(averagingMethod) { // value dates Date tmpEndDate = endDate; diff --git a/ql/cashflows/overnightindexedcoupon.hpp b/ql/cashflows/overnightindexedcoupon.hpp index c13113996f6..8c0d2cf6b6d 100644 --- a/ql/cashflows/overnightindexedcoupon.hpp +++ b/ql/cashflows/overnightindexedcoupon.hpp @@ -71,6 +71,8 @@ namespace QuantLib { const std::vector& indexFixings() const; //! value dates for the rates to be compounded const std::vector& valueDates() const { return valueDates_; } + //! averaging method + const RateAveraging::Type averagingMethod() const { return averagingMethod_; } //@} //! \name FloatingRateCoupon interface //@{ @@ -87,6 +89,7 @@ namespace QuantLib { mutable std::vector fixings_; Size n_; std::vector