diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2019-02-22 12:52:42 -0500 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2019-02-22 14:38:29 -0500 |
| commit | 4379b928e38fa77942bfc6e140d4a10444e12234 (patch) | |
| tree | c25ef7c6e97b642021227b8463f3efa1b06dcd1f /c_layer | |
| parent | 779be4083c48ef01b41f79754a1e21099e078bd4 (diff) | |
| download | pyisda-4379b928e38fa77942bfc6e140d4a10444e12234.tar.gz | |
add missing constructor
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)), |
