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:
1 parent
ce927faf17
commit
4f29dcf8a0
7 files changed
+228
-2
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user