JSONCPP_OSTRINGSTREAM

This commit is contained in:
Christopher Dunn
2016-03-06 11:50:00 -06:00
parent 724ba29bd3
commit 38bb491400
6 changed files with 10 additions and 10 deletions

View File

@@ -82,7 +82,7 @@ public:
// Generic operator that will work with anything ostream can deal with.
template <typename T> TestResult& operator<<(const T& value) {
std::ostringstream oss;
JSONCPP_OSTRINGSTREAM oss;
oss.precision(16);
oss.setf(std::ios_base::floatfield);
oss << value;

View File

@@ -2480,13 +2480,13 @@ JSONTEST_FIXTURE(IteratorTest, const) {
for(int i = 9; i < 12; ++i)
{
std::ostringstream out;
JSONCPP_OSTRINGSTREAM out;
out << std::setw(2) << i;
std::string str = out.str();
value[str] = str;
}
std::ostringstream out;
JSONCPP_OSTRINGSTREAM out;
//in old code, this will get a compile error
Json::Value::const_iterator iter = value.begin();
for(; iter != value.end(); ++iter)