3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 11:25:51 +00:00

Investigating std::vector and #5178

This commit is contained in:
Nikolaj Bjorner 2021-04-24 14:50:59 -07:00
parent 385109d484
commit c03fac8390
4 changed files with 19 additions and 8 deletions

View file

@ -39,8 +39,9 @@ namespace opt {
class model_based_opt {
public:
struct var {
unsigned m_id;
unsigned m_id { 0 };
rational m_coeff;
var() {}
var(unsigned id, rational const& c): m_id(id), m_coeff(c) {}
struct compare {
bool operator()(var x, var y) {