diff --git a/src/math/lp/lar_term.h b/src/math/lp/lar_term.h index fc73f949f..5ce1ff2fc 100644 --- a/src/math/lp/lar_term.h +++ b/src/math/lp/lar_term.h @@ -52,8 +52,7 @@ public: unsigned size() const { return static_cast(m_coeffs.size()); } - template - const T & coeffs() const { + u_map const & coeffs() const { return m_coeffs; } @@ -97,9 +96,8 @@ public: vector> coeffs_as_vector() const { vector> ret; - for (const auto & p : m_coeffs) { - ret.push_back(std::make_pair(p.m_value, p.m_key)); - } + for (const auto & [c, v] : m_coeffs) + ret.push_back({v, c}); return ret; }