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