Reserve the result of dump() in big steps once the output is big (#6175)

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
Niels Lohmann authored and GitHub committed 2026-12-06 14:20:59 +01:00
1 parent ce927faf17
commit 4f29dcf8a0
7 files changed
+228 -2

No files matched your search

+1 -1
View File
@@ -2766,7 +2766,7 @@ public:
const error_handler_t error_handler = error_handler_t::strict) const
{
string_t result;
detail::output_string_adapter<char, string_t> string_adapter(result);
detail::output_dump_string_adapter<char, string_t> string_adapter(result);
if (indent >= 0)
{