1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-25 13:41:56 +03:00

🚨 fixed more warnings

This commit is contained in:
Niels Lohmann
2019-03-17 00:27:44 +01:00
parent 02b3494711
commit 34f8b4f711
8 changed files with 818 additions and 810 deletions

View File

@ -6153,13 +6153,9 @@ class basic_json
const bool strict = true)
{
assert(sax);
switch (format)
{
case input_format_t::json:
return parser(std::move(i)).sax_parse(sax, strict);
default:
return detail::binary_reader<basic_json, SAX>(std::move(i)).sax_parse(format, sax, strict);
}
return format == input_format_t::json
? parser(std::move(i)).sax_parse(sax, strict)
: detail::binary_reader<basic_json, SAX>(std::move(i)).sax_parse(format, sax, strict);
}
/*!