File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 15
15
#include < math.h>
16
16
#include < stdio.h>
17
17
#include < string.h>
18
+ #include < boost/shared_ptr.hpp>
18
19
19
20
#if defined(_MSC_VER) && _MSC_VER < 1500 // VC++ 8.0 and below
20
21
#include < float.h>
@@ -1017,14 +1018,14 @@ StreamWriter* OldCompressingStreamWriterBuilder::newStreamWriter(
1017
1018
1018
1019
std::string writeString (Value const & root, StreamWriter::Factory const & builder) {
1019
1020
std::ostringstream sout;
1020
- std::unique_ptr <StreamWriter> const sw (builder.newStreamWriter (&sout));
1021
+ boost::shared_ptr <StreamWriter> const sw (builder.newStreamWriter (&sout));
1021
1022
sw->write (root);
1022
1023
return sout.str ();
1023
1024
}
1024
1025
1025
1026
std::ostream& operator <<(std::ostream& sout, Value const & root) {
1026
1027
StreamWriterBuilder builder;
1027
- std ::shared_ptr<StreamWriter> writer (builder.newStreamWriter (&sout));
1028
+ boost ::shared_ptr<StreamWriter> writer (builder.newStreamWriter (&sout));
1028
1029
writer->write (root);
1029
1030
return sout;
1030
1031
}
You can’t perform that action at this time.
0 commit comments