sat: fix probing.cc compilation on windows

This commit is contained in:
Corentin Le Molgat
2026-01-08 09:04:19 -08:00
parent 87e8e340d8
commit 1ed9a17980

View File

@@ -14,6 +14,7 @@
#include "ortools/sat/probing.h"
#include <algorithm>
#include <cstdint>
#include <deque>
#include <functional>
#include <optional>
@@ -103,8 +104,8 @@ class TrailCopy {
}
trail_index_[var] = i;
trail_literals_.push_back(literal);
trail_info_.push_back({info.level, assignment_type, reason,
reason_clause});
trail_info_.emplace_back(info.level, assignment_type, reason,
reason_clause);
}
const int num_decisions = trail_.CurrentDecisionLevel();
@@ -232,7 +233,7 @@ class TrailCopy {
}
struct TrailInfo {
int level;
uint32_t level;
int assignment_type;
// For literals propagated by the BinaryImplicationGraph, the negation of
// the original reason. For literals propagated by the ClauseManager, *all*