Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jenny Ryan
ouinet
Commits
90bd9c92
Commit
90bd9c92
authored
Jul 02, 2020
by
Ivan Vilata-i-Balaguer
Browse files
Better type in iterator comparison operators.
parent
f06ec6e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/client.cpp
View file @
90bd9c92
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment