diff --git a/BUILD.bazel b/BUILD.bazel index aa349e237b..3c8c895310 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -2903,8 +2903,8 @@ filegroup( "src/heap/cppgc/process-heap-statistics.h", "src/heap/cppgc/raw-heap.cc", "src/heap/cppgc/raw-heap.h", - "src/heap/cppgc/remembered-set.cc" - "src/heap/cppgc/remembered-set.h" + "src/heap/cppgc/remembered-set.cc", + "src/heap/cppgc/remembered-set.h", "src/heap/cppgc/source-location.cc", "src/heap/cppgc/stats-collector.cc", "src/heap/cppgc/stats-collector.h", diff --git a/src/heap/cppgc/remembered-set.h b/src/heap/cppgc/remembered-set.h index 2024fa1fae..eb8de6da8e 100644 --- a/src/heap/cppgc/remembered-set.h +++ b/src/heap/cppgc/remembered-set.h @@ -48,10 +48,12 @@ class V8_EXPORT_PRIVATE OldToNewRememberedSet final { private: friend class MinorGCTest; - static constexpr auto compare_parameter = [](const WeakCallbackItem& lhs, - const WeakCallbackItem& rhs) { - return lhs.parameter < rhs.parameter; - }; + static constexpr struct { + bool operator()(const WeakCallbackItem& lhs, + const WeakCallbackItem& rhs) const { + return lhs.parameter < rhs.parameter; + } + } compare_parameter{}; const HeapBase& heap_; std::set remembered_slots_;