Closed GoogleCodeExporter closed 9 years ago
What you expected to see isn't valid YAML: you can't simply "concatenate" two
YAML types - at its root, a document must be either a map, sequence, or scalar.
Currently, yaml-cpp doesn't support emitting multiple documents (it probably
will, eventually). For now, just use two emitters for separate documents, or
wrap the two nodes in a sequence as follows:
YAML::Emitter emitter;
emitter << YAML::BeginSeq;
emitter << aMap;
emitter << aSeq;
emitter << YAML::EndSeq;
Original comment by jbe...@gmail.com
on 1 Feb 2011 at 1:20
Original issue reported on code.google.com by
kgsm...@gmail.com
on 1 Feb 2011 at 1:08