diff --git a/ql/instruments/assetswap.cpp b/ql/instruments/assetswap.cpp index b5fe15eb28..707d2d0bba 100644 --- a/ql/instruments/assetswap.cpp +++ b/ql/instruments/assetswap.cpp @@ -43,7 +43,7 @@ namespace QuantLib { const DayCounter& floatingDayCounter, Date dealMaturity, bool payBondCoupon) - : AssetSwap(payBondCoupon, bond, bondCleanPrice, iborIndex, spread, + : AssetSwap(payBondCoupon, std::move(bond), bondCleanPrice, iborIndex, spread, Schedule(), floatingDayCounter, parSwap, gearing, nonParRepayment, dealMaturity) {}