mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-06-08 09:27:50 +02:00
JSONCPP_ISTRINGSTREAM
This commit is contained in:
parent
38bb491400
commit
1e990640a9
@ -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.",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user