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

Const and non-const Find() have different return types.
This commit is contained in:
Michael Lutz 2019-03-28 00:15:51 +01:00 committed by Charles Pigott
parent ee260e4704
commit 21d9e87b46
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
/**