3

I want to emit a string with quotes using yaml-cpp so it looks like

time_stamp: "August 10, 2011 01:37:52"

in the output yaml file. How do I do it? Thanks.

Snow Wang
  • 41
  • 2

1 Answers1

3
YAML::Emitter out;
// ...
out << YAML::DoubleQuoted << "August 10, 2011 01:37:52";
Jesse Beder
  • 33,081
  • 21
  • 109
  • 146