We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e0effb4 + f82ffe5 commit 608ea3eCopy full SHA for 608ea3e
1 file changed
ql/exchangerate.hpp
@@ -81,8 +81,7 @@ namespace QuantLib {
81
82
// inline definitions
83
84
- inline ExchangeRate::ExchangeRate()
85
- : rate_(Null<Decimal>()) {}
+ inline ExchangeRate::ExchangeRate() : rate_(Null<Decimal>()), type_(Direct) {}
86
87
inline ExchangeRate::ExchangeRate(Currency source, Currency target, Decimal rate)
88
: source_(std::move(source)), target_(std::move(target)), rate_(rate), type_(Direct) {}
0 commit comments