We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d49ab5a commit 77ce057Copy full SHA for 77ce057
include/json/writer.h
@@ -33,8 +33,10 @@ class StreamWriterBuilder;
33
StreamWriterBuilderFactory f;
34
StreamWriter::Builder builder(&f);
35
builder.setCommentStyle(StreamWriter::CommentStyle::None);
36
- std::shared_ptr<StreamWriter> writer(builder.newStreamWriter(&std::cout));
37
- writer.write(value);
+ std::shared_ptr<StreamWriter> writer(
+ builder.newStreamWriter(&std::cout));
38
+ writer->write(value);
39
+ std::cout.flush();
40
*/
41
class JSON_API StreamWriterBuilderFactory {
42
public:
0 commit comments