diff options
Diffstat (limited to 'c_layer')
| -rw-r--r-- | c_layer/curve.hpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/c_layer/curve.hpp b/c_layer/curve.hpp index 22a6cc9..5cc796a 100644 --- a/c_layer/curve.hpp +++ b/c_layer/curve.hpp @@ -34,7 +34,9 @@ namespace pyisda { class YieldCurve : public Curve { public: - YieldCurve(TCurve* const curve, const std::vector<TDate>& dates); + YieldCurve(TCurve* const curve, const std::vector<TDate>& dates) : + Curve(curve), + dates(dates) {}; YieldCurve(const YieldCurve &curve2) : Curve(curve2), dates(std::move(curve2.dates)) {}; @@ -46,7 +48,10 @@ namespace pyisda { class SpreadCurve : public Curve { public: SpreadCurve(TCurve* const curve, const std::vector<double>& recovery_rates, - const std::string& ticker); + const std::string& ticker) : + Curve(curve), + recovery_rates(recovery_rates), + ticker(ticker) {}; SpreadCurve(const SpreadCurve &curve2) : Curve(curve2), recovery_rates(std::move(curve2.recovery_rates)), |
