Skip to content

Commit 1d21fa5

Browse files
committed
Restore kwargs compatibility with previous version
1 parent ee02ab7 commit 1d21fa5

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

SWIG/interpolation.i

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ class Safe##T {
6262
public:
6363
Safe##T(const Array& x, const Array& y);
6464
Real operator()(Real x, bool allowExtrapolation = false) const;
65-
Real primitive(Real x, bool allowExtrapolation = false) const;
66-
Real derivative(Real x, bool allowExtrapolation = false) const;
67-
Real secondDerivative(Real x, bool allowExtrapolation = false) const;
65+
Real derivative(Real x, bool extrapolate = false) const;
66+
Real secondDerivative(Real x, bool extrapolate = false) const;
67+
Real primitive(Real x, bool extrapolate = false) const;
6868
};
6969
%enddef
7070

SWIG/volatilities.i

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,9 @@ using QuantLib::BlackVarianceCurve;
452452

453453
%shared_ptr(BlackVarianceCurve);
454454
class BlackVarianceCurve : public BlackVolTermStructure {
455+
#if !defined(SWIGJAVA) && !defined(SWIGCSHARP)
456+
%feature("kwargs") BlackVarianceCurve;
457+
#endif
455458
public:
456459
BlackVarianceCurve(const Date& referenceDate,
457460
const std::vector<Date>& dates,

0 commit comments

Comments
 (0)