DenseMap: add workaround for C++2a builds

Hide operator !=
This commit is contained in:
Nekotekina
2020-02-10 14:45:40 +03:00
parent 9fb67ecaea
commit 1394b1ccc8

View File

@@ -1219,6 +1219,8 @@ public:
"comparing incomparable iterators!");
return Ptr == RHS.Ptr;
}
#if __cpp_impl_three_way_comparison >= 201711
#else
bool operator!=(const ConstIterator &RHS) const {
assert((!Ptr || isHandleInSync()) && "handle not in sync!");
assert((!RHS.Ptr || RHS.isHandleInSync()) && "handle not in sync!");
@@ -1226,6 +1228,7 @@ public:
"comparing incomparable iterators!");
return Ptr != RHS.Ptr;
}
#endif
inline DenseMapIterator& operator++() { // Preincrement
assert(isHandleInSync() && "invalid iterator access!");