💚 fix build

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
Niels Lohmann
2026-07-01 20:16:12 +02:00
parent 461a9c351b
commit 85e41d06d3
4 changed files with 24 additions and 22 deletions
+3 -7
View File
@@ -5408,11 +5408,11 @@ struct formatter<nlohmann::NLOHMANN_BASIC_JSON_TPL, char> // NOLINT(cert-dcl58-c
++it;
}
// ['#'] - "alternate form", used here to request pretty-printing
bool pretty = false;
// ['#'] - "alternate form", used here to request pretty-printing with a
// default indent of 4 (overridden by an explicit width below, if given)
if (it != end && *it == '#')
{
pretty = true;
indent = 4;
++it;
}
@@ -5428,10 +5428,6 @@ struct formatter<nlohmann::NLOHMANN_BASIC_JSON_TPL, char> // NOLINT(cert-dcl58-c
++it;
}
}
else if (pretty)
{
indent = 4;
}
// sign, the '0' flag, precision, locale-specific formatting ('L'), dynamic
// width/precision ("{...}"), and type characters all have no meaning for