Resolve ambiguous call to operator== by overloading it with base type

This commit is contained in:
Simon Giraudot 2021-03-31 15:48:05 +02:00
parent c11d6316b1
commit 4e4a93de37
1 changed files with 1 additions and 0 deletions

View File

@ -321,6 +321,7 @@ public:
return It::operator==( It(nullptr));
}
bool operator!=( std::nullptr_t p) const { return !(*this == p); }
bool operator==( const It& i) const { return It::operator==(i); }
bool operator==( const Self& i) const { return It::operator==(i); }
bool operator!=( const Self& i) const { return !(*this == i); }