diff --git a/common/set.h b/common/set.h index f2e325abfb01..3b01b5a3027c 100644 --- a/common/set.h +++ b/common/set.h @@ -6,6 +6,7 @@ #define CARBON_COMMON_SET_H_ #include +#include #include "common/check.h" #include "common/hashtable_key_context.h" @@ -78,7 +79,7 @@ class SetView : RawHashtable::ViewImpl { // Enable implicit conversions that add `const`-ness to the key type. // NOLINTNEXTLINE(google-explicit-constructor) - SetView(SetView, KeyContextT> other_view) + SetView(const SetView, KeyContextT>& other_view) requires(!std::same_as>) : ImplT(other_view) {}