Skip to content

Commit

Permalink
- benchmark: switch Boost/JSON and RapidJSON to precise number parsin…
Browse files Browse the repository at this point in the history
…g (fix compilation error)
  • Loading branch information
oknenavin committed Jul 21, 2024
1 parent a2a502e commit 84188f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/src/json/json.node-time.rapidjson.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace test { namespace kind {
auto constexpr opt = rapidjson::kParseValidateEncodingFlag|rapidjson::kParseFullPrecisionFlag;
t.time.read.push_back(CXON_MEASURE(
vo.emplace_back(std::unique_ptr<rapidjson::Document>(new rapidjson::Document));
auto const r = vo.back()->Parse<opt>(json.c_str());
rapidjson::ParseResult const r = vo.back()->Parse<opt>(json.c_str());
if (!r) t.error = std::string("RapidJSON error: ") + rapidjson::GetParseError_En(r.Code());
));
// write
Expand Down

0 comments on commit 84188f1

Please sign in to comment.