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
4571e817
Unverified
Commit
4571e817
authored
Jul 14, 2020
by
Pavel Karelin
Committed by
GitHub
Jul 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation for Qt-projects (#918)
Not use 'emit' as variable name, in Qt Framework it reserved word
parent
c82d3129
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
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