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
4571e817
Unverified
Commit
4571e817
authored
Jul 14, 2020
by
Pavel Karelin
Committed by
GitHub
Jul 14, 2020
Browse files
Fix compilation for Qt-projects (#918)
Not use 'emit' as variable name, in Qt Framework it reserved word
parent
c82d3129
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
include/yaml-cpp/stlemitter.h
include/yaml-cpp/stlemitter.h
+4
-4
No files found.
include/yaml-cpp/stlemitter.h
View file @
4571e817
...
...
@@ -16,8 +16,8 @@ namespace YAML {
template
<
typename
Seq
>
inline
Emitter
&
EmitSeq
(
Emitter
&
emitter
,
const
Seq
&
seq
)
{
emitter
<<
BeginSeq
;
for
(
const
auto
&
emit
:
seq
)
emitter
<<
emit
;
for
(
const
auto
&
v
:
seq
)
emitter
<<
v
;
emitter
<<
EndSeq
;
return
emitter
;
}
...
...
@@ -40,8 +40,8 @@ inline Emitter& operator<<(Emitter& emitter, const std::set<T>& v) {
template
<
typename
K
,
typename
V
>
inline
Emitter
&
operator
<<
(
Emitter
&
emitter
,
const
std
::
map
<
K
,
V
>&
m
)
{
emitter
<<
BeginMap
;
for
(
const
auto
&
emit
:
m
)
emitter
<<
Key
<<
emit
.
first
<<
Value
<<
emit
.
second
;
for
(
const
auto
&
v
:
m
)
emitter
<<
Key
<<
v
.
first
<<
Value
<<
v
.
second
;
emitter
<<
EndMap
;
return
emitter
;
}
...
...
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