JsonString: change default ownership to Copied

This commit is contained in:
Benoit Blanchon
2024-11-26 10:10:52 +01:00
parent c078957282
commit 8931651317
7 changed files with 10 additions and 7 deletions

View File

@@ -139,7 +139,8 @@ TEST_CASE("serialize MsgPack value") {
SECTION("str 32") {
std::string shortest(65536, '?');
checkVariant(JsonString(shortest.c_str(), true), // force store by pointer
checkVariant(JsonString(shortest.c_str(),
JsonString::Linked), // force store by pointer
"\xDB\x00\x01\x00\x00"_s + shortest);
}