Boost logo

Boost :

From: Vinnie Falco (vinnie.falco_at_[hidden])
Date: 2019-09-24 14:05:48


On Tue, Sep 24, 2019 at 6:56 AM Dominique Devienne via Boost
<boost_at_[hidden]> wrote:
> A boost::json::value with by-value semantic, proper R-value
> support, a nice API, that's compact and efficient, would have value.

Yes!

> How different from boost::variant is it though?

Do you mean literally

    boost::variant<std::string, std::map<...>, std::vector<...>,
number_type, bool, null_type>

?

I'm not even sure what to say to that... lol... the difference between
the declaration above and the provided json::value is like night and
day. `variant` is missing almost all of these member functions:

<https://github.com/vinniefalco/json/blob/dd53665862d626b6cc308203fdb6d580457fe5b9/include/boost/json/value.hpp#L772>

Surely you mean something else??

Regards


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk