Skip to content

Commit

Permalink
Disable warning when default-initializing deprecated member
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Jul 14, 2021
1 parent 9360834 commit 74b1b09
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ql/models/calibrationhelper.hpp
Expand Up @@ -49,6 +49,8 @@ namespace QuantLib {
public:
enum CalibrationErrorType {
RelativePriceError, PriceError, ImpliedVolError};

QL_DEPRECATED_DISABLE_WARNING
BlackCalibrationHelper(Handle<Quote> volatility,
CalibrationErrorType calibrationErrorType = RelativePriceError,
const VolatilityType type = ShiftedLognormal,
Expand All @@ -57,6 +59,7 @@ namespace QuantLib {
calibrationErrorType_(calibrationErrorType) {
registerWith(volatility_);
}
QL_DEPRECATED_ENABLE_WARNING

void performCalculations() const override {
marketValue_ = blackPrice(volatility_->value());
Expand Down

0 comments on commit 74b1b09

Please sign in to comment.