Skip to content

Commit

Permalink
Don't export class removed in C++
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Oct 25, 2024
1 parent d10cd8d commit e3321bd
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions SWIG/forward.i
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,8 @@ class Forward : public Instrument{
};


// FixedRateBondForward
%{
using QuantLib::BondForward;
using QuantLib::FixedRateBondForward;
using QuantLib::FixedRateBond;
using QuantLib::BusinessDayConvention;
using QuantLib::Position;
Expand All @@ -77,32 +75,11 @@ class BondForward : public Forward {
const Calendar& calendar,
BusinessDayConvention businessDayConvention,
const ext::shared_ptr<Bond>& bond,
const Handle<YieldTermStructure>& discountCurve =
Handle<YieldTermStructure>(),
const Handle<YieldTermStructure>& incomeDiscountCurve =
Handle<YieldTermStructure>());
const Handle<YieldTermStructure>& discountCurve = {},
const Handle<YieldTermStructure>& incomeDiscountCurve = {});

Real forwardPrice();
Real cleanForwardPrice();
};

%shared_ptr(FixedRateBondForward)
class FixedRateBondForward : public BondForward {
public:
FixedRateBondForward(
const Date& valueDate,
const Date& maturityDate,
Position::Type type,
Real strike,
Natural settlementDays,
const DayCounter& dayCounter,
const Calendar& calendar,
BusinessDayConvention businessDayConvention,
const ext::shared_ptr<FixedRateBond>& fixedBond,
const Handle<YieldTermStructure>& discountCurve =
Handle<YieldTermStructure>(),
const Handle<YieldTermStructure>& incomeDiscountCurve =
Handle<YieldTermStructure>());
};

#endif

0 comments on commit e3321bd

Please sign in to comment.