Skip to content

Commit 608ea3e

Browse files
Merge branch 'QPR-11322' into 'master'
QPR-11322 port commit 1f8729 from luigi's repo Closes QPR-11322 See merge request qs/quantlib!45
2 parents e0effb4 + f82ffe5 commit 608ea3e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ql/exchangerate.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ namespace QuantLib {
8181

8282
// inline definitions
8383

84-
inline ExchangeRate::ExchangeRate()
85-
: rate_(Null<Decimal>()) {}
84+
inline ExchangeRate::ExchangeRate() : rate_(Null<Decimal>()), type_(Direct) {}
8685

8786
inline ExchangeRate::ExchangeRate(Currency source, Currency target, Decimal rate)
8887
: source_(std::move(source)), target_(std::move(target)), rate_(rate), type_(Direct) {}

0 commit comments

Comments
 (0)