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
6c690e82
Commit
6c690e82
authored
May 25, 2012
by
Jesse Beder
Browse files
Updated the ostream emitting overload to user the new ostream-handling emitters
parent
a78069a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/emit.cpp
src/emit.cpp
+1
-2
No files found.
src/emit.cpp
View file @
6c690e82
...
@@ -15,9 +15,8 @@ namespace YAML
...
@@ -15,9 +15,8 @@ namespace YAML
std
::
ostream
&
operator
<<
(
std
::
ostream
&
out
,
const
Node
&
node
)
std
::
ostream
&
operator
<<
(
std
::
ostream
&
out
,
const
Node
&
node
)
{
{
Emitter
emitter
;
Emitter
emitter
(
out
)
;
emitter
<<
node
;
emitter
<<
node
;
out
<<
emitter
.
c_str
();
return
out
;
return
out
;
}
}
...
...
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