mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-23 01:38:11 +08:00
JSONCPP_ISTRINGSTREAM
This commit is contained in:
@@ -617,7 +617,7 @@ bool Reader::decodeDouble(Token& token) {
|
|||||||
bool Reader::decodeDouble(Token& token, Value& decoded) {
|
bool Reader::decodeDouble(Token& token, Value& decoded) {
|
||||||
double value = 0;
|
double value = 0;
|
||||||
std::string buffer(token.start_, token.end_);
|
std::string buffer(token.start_, token.end_);
|
||||||
std::istringstream is(buffer);
|
JSONCPP_ISTRINGSTREAM is(buffer);
|
||||||
if (!(is >> value))
|
if (!(is >> value))
|
||||||
return addError("'" + std::string(token.start_, token.end_) +
|
return addError("'" + std::string(token.start_, token.end_) +
|
||||||
"' is not a number.",
|
"' is not a number.",
|
||||||
|
Reference in New Issue
Block a user