On Tue, Sep 24, 2019 at 6:56 AM Dominique Devienne via Boost <boost@lists.boost.org> 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