Fix #7165: Const overload SmallMap::Contains(key) compared wrong types.

Const and non-const Find() have different return types.
pull/82/head
Michael Lutz 5 years ago committed by Charles Pigott
parent ee260e4704
commit 21d9e87b46

@ -95,7 +95,7 @@ struct SmallMap : std::vector<SmallPair<T, U> > {
*/
inline bool Contains(const T &key) const
{
return this->Find(key) != this->End();
return this->Find(key) != std::vector<Pair>::end();
}
/**

Loading…
Cancel
Save