1
0
mirror of https://github.com/nlohmann/json.git synced 2025-08-07 18:02:57 +03:00

🐛 properly pass serialize_binary to dump function #2067

This commit is contained in:
Niels Lohmann
2020-04-27 15:10:23 +02:00
parent d9d1279a94
commit 2e5727d778
5 changed files with 35 additions and 21 deletions

View File

@@ -2237,11 +2237,11 @@ class basic_json
if (indent >= 0)
{
s.dump(*this, true, ensure_ascii, static_cast<unsigned int>(indent), serialize_binary);
s.dump(*this, true, ensure_ascii, static_cast<unsigned int>(indent), 0, serialize_binary);
}
else
{
s.dump(*this, false, ensure_ascii, 0, serialize_binary);
s.dump(*this, false, ensure_ascii, 0, 0, serialize_binary);
}
return result;