1
0
mirror of https://github.com/nlohmann/json.git synced 2026-07-28 22:53:03 +04:00

🚨 fix UBSAN warnings

This commit is contained in:
Niels Lohmann
2019-11-03 13:48:25 +01:00
parent 0db1692f45
commit dfe53c36da
4 changed files with 30 additions and 25 deletions
+2 -3
View File
@@ -584,10 +584,9 @@ TEST_CASE("BSON input/output_adapters")
{
SECTION("std::ostringstream")
{
std::ostringstream ss;
std::basic_ostringstream<std::uint8_t> ss;
json::to_bson(json_representation, ss);
std::istringstream iss(ss.str());
json j3 = json::from_bson(iss);
json j3 = json::from_bson(ss.str());
CHECK(json_representation == j3);
}