mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00
Set up util/parse for the new API
This commit is contained in:
@@ -46,7 +46,8 @@ void parse(std::istream& input)
|
||||
std::cout << emitter.c_str() << "\n";
|
||||
}
|
||||
#else
|
||||
// TODO: Parse with new API
|
||||
YAML::Node doc = YAML::Parse(input);
|
||||
std::cout << doc << "\n";
|
||||
#endif
|
||||
} catch(const YAML::Exception& e) {
|
||||
std::cerr << e.what() << "\n";
|
||||
|
Reference in New Issue
Block a user