Skip to content

Commit c39fbda

Browse files
authored
minor fix for code examples (open-source-parsers#1317)
1 parent 65bb1b1 commit c39fbda

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

example/readFromString/readFromString.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "json/json.h"
22
#include <iostream>
3+
#include <memory>
34
/**
45
* \brief Parse a raw string into Value object using the CharReaderBuilder
56
* class, or the legacy Reader class.

example/streamWrite/streamWrite.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "json/json.h"
22
#include <iostream>
3+
#include <memory>
34
/** \brief Write the Value object to a stream.
45
* Example Usage:
56
* $g++ streamWrite.cpp -ljsoncpp -std=c++11 -o streamWrite

0 commit comments

Comments
 (0)