Skip to content

0.158.0

Compare
Choose a tag to compare
@danielaparker danielaparker released this 08 Oct 14:47
· 2868 commits to master since this release

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 optional mode parameter
    (JSONCONS_RDWR or JSONCONS_RDONLY) and three optional function object parameters, match (value matches expected),
    from (convert from type known to jsoncons) and into (convert into type known to jsoncons).
    In this release - 0.158.0 - the order of the from and into function object parameters has been reversed.
    If you've provided from and into function objects as arguments in your json traits convenience macros, you'll
    need to reverse their order, or if you've provided just a from function argument, you'll need to precede it
    with jsoncons::identity() (or std::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 remain jsoncons::ser_error (or std::error_code) as before.