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
gaoqiong
yaml-cpp
Commits
26faac38
Unverified
Commit
26faac38
authored
Mar 29, 2020
by
Romain Deterre
Committed by
GitHub
Mar 29, 2020
Browse files
Remove uses of std::iterator (deprecated in C++17) (#839)
parent
120863ba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
include/yaml-cpp/node/detail/node_iterator.h
include/yaml-cpp/node/detail/node_iterator.h
+6
-5
No files found.
include/yaml-cpp/node/detail/node_iterator.h
View file @
26faac38
...
@@ -52,10 +52,7 @@ struct node_iterator_type<const V> {
...
@@ -52,10 +52,7 @@ struct node_iterator_type<const V> {
};
};
template
<
typename
V
>
template
<
typename
V
>
class
node_iterator_base
class
node_iterator_base
{
:
public
std
::
iterator
<
std
::
forward_iterator_tag
,
node_iterator_value
<
V
>
,
std
::
ptrdiff_t
,
node_iterator_value
<
V
>*
,
node_iterator_value
<
V
>>
{
private:
private:
struct
enabler
{};
struct
enabler
{};
...
@@ -68,9 +65,13 @@ class node_iterator_base
...
@@ -68,9 +65,13 @@ class node_iterator_base
};
};
public:
public:
using
iterator_category
=
std
::
forward_iterator_tag
;
using
value_type
=
node_iterator_value
<
V
>
;
using
difference_type
=
std
::
ptrdiff_t
;
using
pointer
=
node_iterator_value
<
V
>*
;
using
reference
=
node_iterator_value
<
V
>
;
using
SeqIter
=
typename
node_iterator_type
<
V
>::
seq
;
using
SeqIter
=
typename
node_iterator_type
<
V
>::
seq
;
using
MapIter
=
typename
node_iterator_type
<
V
>::
map
;
using
MapIter
=
typename
node_iterator_type
<
V
>::
map
;
using
value_type
=
node_iterator_value
<
V
>
;
node_iterator_base
()
node_iterator_base
()
:
m_type
(
iterator_type
::
NoneType
),
m_seqIt
(),
m_mapIt
(),
m_mapEnd
()
{}
:
m_type
(
iterator_type
::
NoneType
),
m_seqIt
(),
m_mapIt
(),
m_mapEnd
()
{}
...
...
gaoqiong
@gaoqiong
mentioned in commit
850ec4f3
·
Oct 08, 2024
mentioned in commit
850ec4f3
mentioned in commit 850ec4f39e1c4a3a950e01e58329ffeb970769d8
Toggle commit list
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