Commit 90bd9c92 authored by Ivan Vilata-i-Balaguer's avatar Ivan Vilata-i-Balaguer
Browse files

Better type in iterator comparison operators.

parent f06ec6e6
......@@ -652,8 +652,8 @@ public:
value_type operator*() const { return {*_it, _port}; }
const_iterator& operator++() { ++_it; return *this; }
bool operator==(const_iterator other) const { return _it == other._it; }
bool operator!=(const_iterator other) const { return _it != other._it; }
bool operator==(const const_iterator& other) const { return _it == other._it; }
bool operator!=(const const_iterator& other) const { return _it != other._it; }
private:
addrs_iterator _it;
unsigned short _port;
......
Supports Markdown
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