Boost logo

Boost :

From: Gavin Lambert (boost_at_[hidden])
Date: 2019-10-22 21:52:57

On 23/10/2019 05:25, Vinnie Falco wrote:
>> So I'm curious why it should be different here. Does the doc goes into that already?
> `json::value` is not `variant<...>` for the same reason that
> `string_view` is not `std::pair<char const*, std::size_t>`.

That's a good reason for not inheriting from it.

It's not a good reason for not using it as a private member, to avoid
reimplementing the variant-storage concept.
(Though there may be other good reasons for that.)

Boost list run by bdawes at, gregod at, cpdaniel at, john at