Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yaml-cpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
yaml-cpp
Commits
26faac38
Unverified
Commit
26faac38
authored
Mar 29, 2020
by
Romain Deterre
Committed by
GitHub
Mar 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove uses of std::iterator (deprecated in C++17) (#839)
parent
120863ba
Hide 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
+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> {
};
template
<
typename
V
>
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
>>
{
class
node_iterator_base
{
private
:
struct
enabler
{};
...
...
@@ -68,9 +65,13 @@ class node_iterator_base
};
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
MapIter
=
typename
node_iterator_type
<
V
>::
map
;
using
value_type
=
node_iterator_value
<
V
>
;
node_iterator_base
()
:
m_type
(
iterator_type
::
NoneType
),
m_seqIt
(),
m_mapIt
(),
m_mapEnd
()
{}
...
...
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