Commit ef61b910 authored by Martin Heistermann's avatar Martin Heistermann

C++20 compatibility:

With the new C++20 rules for comparison operator overloads,
operator== calls became ambiguous due to asymmetric const.
parent c10984b0
Pipeline #15758 passed with stages
in 4 minutes and 43 seconds
......@@ -66,8 +66,8 @@ public:
iterator& operator++() { ++m_it_; return(*this);}
iterator operator++(int) { return iterator(++m_it_); }
bool operator== (const iterator& _it) { return (m_it_ == _it.m_it_);}
bool operator!= (const iterator& _it) { return (m_it_ != _it.m_it_);}
bool operator== (const iterator& _it) const { return (m_it_ == _it.m_it_);}
bool operator!= (const iterator& _it) const { return (m_it_ != _it.m_it_);}
// get raw iterator of map
typename std::map<PII,VType>::iterator& map_iterator() {return m_it_;}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment