Skip to content

Commit eceeb4f

Browse files
committed
make volatility function virtual in the cpivolatilitystructure
1 parent 2a715c6 commit eceeb4f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ql/termstructures/volatility/inflation/cpivolatilitystructure.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,18 @@ namespace QuantLib {
5656
*/
5757
//@{
5858
//! Returns the volatility for a given maturity date and strike rate.
59-
Volatility volatility(const Date& maturityDate,
59+
virtual Volatility volatility(const Date& maturityDate,
6060
Rate strike,
6161
const Period &obsLag = Period(-1,Days),
6262
bool extrapolate = false) const;
6363
//! returns the volatility for a given option tenor and strike rate
64-
Volatility volatility(const Period& optionTenor,
64+
virtual Volatility volatility(const Period& optionTenor,
6565
Rate strike,
6666
const Period &obsLag = Period(-1,Days),
6767
bool extrapolate = false) const;
6868
/*! Returns the volatility for a given time and strike rate. No adjustments
6969
due to lags and interpolation are applied to the input time. */
70-
Volatility volatility(Time time, Rate strike) const;
70+
virtual Volatility volatility(Time time, Rate strike) const;
7171

7272
//! Returns the total integrated variance for a given exercise
7373
//! date and strike rate.

0 commit comments

Comments
 (0)