Skip to content

Commit e0f74bd

Browse files
committed
sat: fix probing.cc implem against stdc++17
note: Invented public ctor `A(a, b, v)` not defined in c++17 ref: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0960r2.html
1 parent 1ed9a17 commit e0f74bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ortools/sat/probing.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ class TrailCopy {
104104
}
105105
trail_index_[var] = i;
106106
trail_literals_.push_back(literal);
107-
trail_info_.emplace_back(info.level, assignment_type, reason,
108-
reason_clause);
107+
trail_info_.push_back(
108+
{info.level, assignment_type, reason, reason_clause});
109109
}
110110

111111
const int num_decisions = trail_.CurrentDecisionLevel();

0 commit comments

Comments
 (0)