From 4379b928e38fa77942bfc6e140d4a10444e12234 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Fri, 22 Feb 2019 12:52:42 -0500 Subject: add missing constructor --- c_layer/curve.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'c_layer/curve.hpp') 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& dates); + YieldCurve(TCurve* const curve, const std::vector& 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& 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)), -- cgit v1.2.3-70-g09d2