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
850ec4f3
Commit
850ec4f3
authored
Nov 11, 2020
by
Orgad Shaneh
Committed by
Jesse Beder
Aug 27, 2024
Browse files
Fix reference types in iterators
Amends
26faac38
.
parent
84459a7f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
include/yaml-cpp/node/detail/iterator.h
include/yaml-cpp/node/detail/iterator.h
+1
-1
include/yaml-cpp/node/detail/node_iterator.h
include/yaml-cpp/node/detail/node_iterator.h
+1
-1
No files found.
include/yaml-cpp/node/detail/iterator.h
View file @
850ec4f3
...
@@ -41,7 +41,7 @@ class iterator_base {
...
@@ -41,7 +41,7 @@ class iterator_base {
using
value_type
=
V
;
using
value_type
=
V
;
using
difference_type
=
std
::
ptrdiff_t
;
using
difference_type
=
std
::
ptrdiff_t
;
using
pointer
=
V
*
;
using
pointer
=
V
*
;
using
reference
=
V
;
using
reference
=
V
&
;
public:
public:
iterator_base
()
:
m_iterator
(),
m_pMemory
()
{}
iterator_base
()
:
m_iterator
(),
m_pMemory
()
{}
...
...
include/yaml-cpp/node/detail/node_iterator.h
View file @
850ec4f3
...
@@ -69,7 +69,7 @@ class node_iterator_base {
...
@@ -69,7 +69,7 @@ class node_iterator_base {
using
value_type
=
node_iterator_value
<
V
>
;
using
value_type
=
node_iterator_value
<
V
>
;
using
difference_type
=
std
::
ptrdiff_t
;
using
difference_type
=
std
::
ptrdiff_t
;
using
pointer
=
node_iterator_value
<
V
>*
;
using
pointer
=
node_iterator_value
<
V
>*
;
using
reference
=
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
;
...
...
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