0.158.0
Bugs fixed:
- Fixed compilation error with gcc 11, #276
(thanks to Laurent Stacul)
Changes:
-
In 0.157.0, the
_NAME_
convenience macros were augmented to allow an optionalmode
parameter
(JSONCONS_RDWR
orJSONCONS_RDONLY
) and three optional function object parameters,match
(value matches expected),
from
(convert from type known to jsoncons) andinto
(convert into type known to jsoncons).
In this release - 0.158.0 - the order of thefrom
andinto
function object parameters has been reversed.
If you've providedfrom
andinto
function objects as arguments in your json traits convenience macros, you'll
need to reverse their order, or if you've provided just afrom
function argument, you'll need to precede it
withjsoncons::identity()
(orstd::identity()
if C++20). For the rationale for this change, see
#277 -
Conversion errors during decode are now reported more consistently as
jsoncons::convert_error
,
parsing errors remainjsoncons::ser_error
(or std::error_code
) as before.