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 optionalmodeparameter
(JSONCONS_RDWRorJSONCONS_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 thefromandintofunction object parameters has been reversed.
If you've providedfromandintofunction objects as arguments in your json traits convenience macros, you'll
need to reverse their order, or if you've provided just afromfunction 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.