JSON for Modern C++ version 3.10.1 #2971
nlohmann
announced in
Announcements
Replies: 1 comment 1 reply
-
As reported in #2973, the release tag contains the library with older version numbers. The advertised bug fixes are in, but any version number is still reported as |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Release date: 2021-08-24
SHA-256: 0b628af78a2f0f3e2ff41d8dfa18314dd53831ffc2720c2944192d9f53727f4d (json.hpp), 144268f7f85afb0f0fbea7c796723c849724c975f9108ffdadde9ecedaa5f0b1 (include.zip)
Summary
This release fixes a bug introduced in release 3.10.0: the extended diagnostics triggered an assertion when used with
ordered_json
. All changes are backward-compatible.💰 Note you can support this project via GitHub sponsors or PayPal.
🐛 Bug Fixes
ordered_json
. JSON_DIAGNOSTICS assertion for ordered_json #2962 Fix parent update for diagnostics with ordered_json #2963⚡ Improvements
Warnings
hash.hpp
. Add header to use value_t #2948-Wextra-semi-stmt
warnings. Fix some extra ";" clang warnings #2957Tests and CI
JSON_Install
is set toOFF
. ctest (58+60,/67 cmake_import_configure) fails when build with -D JSON_Install:BOOL=OFF because of missing nlohmann_jsonTargets.cmake #2946 Skip some tests if JSON_Install is not set #2947Documentation
🔥 Deprecated functions
Passing iterator pairs or pointer/length pairs to parsing functions (
basic_json::parse
,basic_json::accept
,basic_json::sax_parse
,basic_json::from_cbor
,basic_json::from_msgpack
,basic_json::from_ubjson
,basic_json::from_bson
) via initializer lists is deprecated. Instead, pass two iterators; for instance, callbasic_json::from_cbor(ptr, ptr+len)
instead ofbasic_json::from_cbor({ptr, len})
.The following functions have been deprecated in earlier versions and will be removed in the next major version (i.e., 4.0.0):
iterator_wrapper
are deprecated. Please use the member functionitems()
instead.friend std::istream& operator<<(basic_json&, std::istream&)
andfriend std::ostream& operator>>(const basic_json&, std::ostream&)
are deprecated. Please usefriend std::istream& operator>>(std::istream&, basic_json&)
andfriend operator<<(std::ostream&, const basic_json&)
instead.All deprecations are annotated with
HEDLEY_DEPRECATED_FOR
to report which function to use instead.This discussion was created from the release JSON for Modern C++ version 3.10.1.
Beta Was this translation helpful? Give feedback.
All reactions