Add missing initialization of node_cmp_ member.

This commit is contained in:
Rasmus Munk Larsen 2023-10-05 17:27:26 -07:00
parent 0a37c2a301
commit 6a5799cc2e
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ template <typename T, typename C = std::less<T>, typename OPS = hash_ops<T>> cla
// We use this ordering of the edges in the adjacency matrix for // We use this ordering of the edges in the adjacency matrix for
// exact compatibility with an older implementation. // exact compatibility with an older implementation.
struct IndirectCmp { struct IndirectCmp {
IndirectCmp(const std::vector<T> &nodes) : nodes_(nodes) {} IndirectCmp(const std::vector<T> &nodes) : node_cmp_(), nodes_(nodes) {}
bool operator()(int a, int b) const bool operator()(int a, int b) const
{ {
log_assert(static_cast<size_t>(a) < nodes_.size()); log_assert(static_cast<size_t>(a) < nodes_.size());