Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
5d1e4af6
Commit
5d1e4af6
authored
Nov 05, 2021
by
Raul Tambre
Browse files
Replace use of deprecated std::iterator
This was deprecated by P0174 in C++17.
parent
bf0701da
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
googlemock/test/gmock-matchers_test.cc
googlemock/test/gmock-matchers_test.cc
+7
-5
No files found.
googlemock/test/gmock-matchers_test.cc
View file @
5d1e4af6
...
@@ -5424,12 +5424,14 @@ class Streamlike {
...
@@ -5424,12 +5424,14 @@ class Streamlike {
}
}
private:
private:
class
ConstIter
:
public
std
::
iterator
<
std
::
input_iterator_tag
,
class
ConstIter
{
value_type
,
ptrdiff_t
,
const
value_type
*
,
const
value_type
&>
{
public:
public:
using
iterator_category
=
std
::
input_iterator_tag
;
using
value_type
=
T
;
using
difference_type
=
ptrdiff_t
;
using
pointer
=
const
value_type
*
;
using
reference
=
const
value_type
&
;
ConstIter
(
const
Streamlike
*
s
,
ConstIter
(
const
Streamlike
*
s
,
typename
std
::
list
<
value_type
>::
iterator
pos
)
typename
std
::
list
<
value_type
>::
iterator
pos
)
:
s_
(
s
),
pos_
(
pos
)
{}
:
s_
(
s
),
pos_
(
pos
)
{}
...
...
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