This commit is contained in:
Christopher Dunn 2015-01-26 11:04:03 -06:00
parent 6065a1c142
commit 472d29f57b

View File

@ -81,8 +81,8 @@ root["indent"]["use_space"] = getCurrentIndentUseSpace();
// To write into a steam with minimal memory overhead, // To write into a steam with minimal memory overhead,
// create a Builder for a StreamWriter. // create a Builder for a StreamWriter.
Json::StreamWriter::Builder builder; Json::StreamWriterBuilder builder;
builder.withIndentation(" "); // or whatever you like builder.indentation_ = " "; // or whatever you like
// Then build a StreamWriter. // Then build a StreamWriter.
std::shared_ptr<Json::StreamWriter> writer( std::shared_ptr<Json::StreamWriter> writer(