Skip to content

Commit

Permalink
[C++] include internal struct in brace initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
g3bk47 authored and speth committed Jul 5, 2024
1 parent 66c3220 commit b2c0af5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/base/AnyMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -767,19 +767,19 @@ bool operator!=(const string& lhs, const AnyValue& rhs)
// Specialization for "Quantity"

void AnyValue::setQuantity(double value, const string& units, bool is_act_energy) {
m_value = Quantity{AnyValue(value), Units(units), is_act_energy};
m_value = Quantity{AnyValue(value), Units(units), is_act_energy, {}};
m_equals = eq_comparer<Quantity>;
}

void AnyValue::setQuantity(double value, const Units& units) {
m_value = Quantity{AnyValue(value), units, false};
m_value = Quantity{AnyValue(value), units, false, {}};
m_equals = eq_comparer<Quantity>;
}

void AnyValue::setQuantity(const vector<double>& values, const string& units) {
AnyValue v;
v = values;
m_value = Quantity{v, Units(units), false};
m_value = Quantity{v, Units(units), false, {}};
m_equals = eq_comparer<Quantity>;
}

Expand Down

0 comments on commit b2c0af5

Please sign in to comment.