Skip to content

Commit

Permalink
init member in ExchangeRate default constructor (#1497)
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Oct 25, 2022
2 parents ff8e034 + 1f8729c commit a9fa1ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ql/exchangerate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ namespace QuantLib {

// inline definitions

inline ExchangeRate::ExchangeRate()
: rate_(Null<Decimal>()) {}
inline ExchangeRate::ExchangeRate() : rate_(Null<Decimal>()), type_(Direct) {}

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

0 comments on commit a9fa1ef

Please sign in to comment.