Skip to content

Commit 9aee96e

Browse files
cholmccshahor02
authored andcommitted
Update bench_ransTPC.cxx
The valid use of `rapidjson::Writer::Flush` cannot be detected. `rapidjson::Writer::Flush` was introduced 15th of March, 2017, _without_ updating the version number (last version update is from 25th of August, 2016 from 1.0.2 to 1.1.0). The authors of `rapidjson` should really get their act together and bump the version when they change the API. Note that `rapidjson::Writer::Flush` simply calls `rapidjson::OStreamWrapper::Flush`. Thus, to ensure maximum compatibility with the last versioned `rapidjson` (present on Ubuntu, f.ex.) this changes the call according.
1 parent 4c0f566 commit 9aee96e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Utilities/rANS/benchmarks/bench_ransTPC.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ int main(int argc, char* argv[])
378378
LOG(info) << "######################################################";
379379
});
380380
writer.EndObject();
381-
writer.Flush();
381+
stream.Flush();
382382
of.close();
383383

384384
// writerFrequencies.EndObject();
@@ -387,4 +387,4 @@ int main(int argc, char* argv[])
387387
// writerRenormed.EndObject();
388388
// writerRenormed.Flush();
389389
// ofRenormed.close();
390-
};
390+
};

0 commit comments

Comments
 (0)