Closed GoogleCodeExporter closed 9 years ago
YAML::BeginDoc is only intended to be used with the emitter. When streaming a
node, it automatically creates an emitter for you and uses YAML::BeginDoc.
There's no way to add metadata to a standard stream, so we can't have
YAML::BeginDoc do anything.
Also, yaml-cpp outputs YAML 1.2, not YAML 1.0, so if it emitted any version
information, it would say that.
There's an existing case (Issue 163) to add the ability to emit directives, so
you can follow that. However, to use this, you'd (probably) need to use the
emitter manually, not stream the node.
Original comment by jbe...@gmail.com
on 24 Jul 2012 at 4:45
Original issue reported on code.google.com by
rudrapou...@gmail.com
on 23 Jul 2012 at 1:14