Skip to content

Commit 64e0daa

Browse files
authored
Merge pull request #1 from TechSmith/removeBoostDependency
Revert "modify jsoncpp because we aren't using stdc++11"
2 parents c36b636 + d4cfa9c commit 64e0daa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/lib_json/json_writer.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include <math.h>
1616
#include <stdio.h>
1717
#include <string.h>
18-
#include <boost/shared_ptr.hpp>
1918

2019
#if defined(_MSC_VER) && _MSC_VER < 1500 // VC++ 8.0 and below
2120
#include <float.h>
@@ -1018,14 +1017,14 @@ StreamWriter* OldCompressingStreamWriterBuilder::newStreamWriter(
10181017

10191018
std::string writeString(Value const& root, StreamWriter::Factory const& builder) {
10201019
std::ostringstream sout;
1021-
boost::shared_ptr<StreamWriter> const sw(builder.newStreamWriter(&sout));
1020+
std::unique_ptr<StreamWriter> const sw(builder.newStreamWriter(&sout));
10221021
sw->write(root);
10231022
return sout.str();
10241023
}
10251024

10261025
std::ostream& operator<<(std::ostream& sout, Value const& root) {
10271026
StreamWriterBuilder builder;
1028-
boost::shared_ptr<StreamWriter> writer(builder.newStreamWriter(&sout));
1027+
std::shared_ptr<StreamWriter> writer(builder.newStreamWriter(&sout));
10291028
writer->write(root);
10301029
return sout;
10311030
}

0 commit comments

Comments
 (0)