Fix stale comments in include/
- json_view.hpp: find_key() returns the first member with a duplicate key, not the last one (as find_member() and the API documentation say). - binary_writer.hpp: throw_size_marker_required() throws other_error.502, not other_error.407. - serializer.hpp, number_parse.hpp, to_chars.hpp: doubles are no longer converted with Grisu2 but with the shortest digits of Zmij; Grisu2 is only used for binary32 and other formats. Comments only; the amalgamation is regenerated. Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
7 files changed
+20
-16
No files matched your search
@@ -915,7 +915,7 @@ class binary_writer
|
||||
JSON_THROW(out_of_range::create(exception_id::subtype_out_of_range, concat("subtype ", std::to_string(subtype), " is too large for ", what, " (max 255)"), &j));
|
||||
}
|
||||
|
||||
/// @throw other_error.407 always
|
||||
/// @throw other_error.502 always
|
||||
JSON_HEDLEY_NO_RETURN JSON_HEDLEY_NEVER_INLINE
|
||||
static void throw_size_marker_required(const BasicJsonType& j)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user