Updated signature of Parser::GetNextDocument (issue 45)

This commit is contained in:
Jesse Beder
2009-09-29 18:25:11 +00:00
parent 94eb7f1dbd
commit 7db39e66b8
3 changed files with 7 additions and 6 deletions

View File

@@ -11,9 +11,8 @@ int main(int argc, char **argv)
std::istream& input = (argc > 1 ? fin : std::cin);
try {
YAML::Parser parser(input);
while(parser) {
YAML::Node doc;
parser.GetNextDocument(doc);
YAML::Node doc;
while(parser.GetNextDocument(doc)) {
YAML::Emitter emitter;
emitter << doc;
std::cout << emitter.c_str() << "\n";