|
Boost : |
From: Hadriel Kaplan (hadrielk_at_[hidden])
Date: 2020-09-12 01:58:01
Heh, cancel that. Vinnie just implemented it a few hours ago and I didnât notice it. :)
-hadriel
> On Sep 11, 2020, at 8:21 PM, Hadriel Kaplan <hadrielk_at_[hidden]> wrote:
>
> Howdy,
> Iâve been testing Boost.JSON in preparation for writing a review, and one thing that I found surprising might be better discussed in a separate thread, so here goesâ¦
>
> Thereâs currently no comparison function or operator to compare one json::value with another.
>
> While I appreciate that a deep comparison isnât cheap - itâs O(N) for the average case but O(N^2) in the worst case I believe - I still think itâ something a JSON-based container value type should have out-of-the-box. Itâs something other popular JSON libraries offer; usually with equality operators, although a named function would be ok too if that was required instead.
>
> I hit the lack of it almost immediately, since test code/assertions frequently check equality. Iâm not sure how frequently itâs used for run-time code in general, however.
>
> -hadriel
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk