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
fb538c94
Commit
fb538c94
authored
Sep 10, 2011
by
beder
Browse files
Set up util/parse for the new API
parent
2851f5f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
util/parse.cpp
util/parse.cpp
+2
-1
No files found.
util/parse.cpp
View file @
fb538c94
...
@@ -46,7 +46,8 @@ void parse(std::istream& input)
...
@@ -46,7 +46,8 @@ void parse(std::istream& input)
std
::
cout
<<
emitter
.
c_str
()
<<
"
\n
"
;
std
::
cout
<<
emitter
.
c_str
()
<<
"
\n
"
;
}
}
#else
#else
// TODO: Parse with new API
YAML
::
Node
doc
=
YAML
::
Parse
(
input
);
std
::
cout
<<
doc
<<
"
\n
"
;
#endif
#endif
}
catch
(
const
YAML
::
Exception
&
e
)
{
}
catch
(
const
YAML
::
Exception
&
e
)
{
std
::
cerr
<<
e
.
what
()
<<
"
\n
"
;
std
::
cerr
<<
e
.
what
()
<<
"
\n
"
;
...
...
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