Boost logo

Boost :

Subject: Re: [boost] [variant2] documentation request
From: degski (degski_at_[hidden])
Date: 2019-03-03 14:19:57


On Sun, 3 Mar 2019 at 14:39, Peter Dimov via Boost <boost_at_[hidden]>
wrote:

> The behavior of emplace varies depending on a number of things:
>
> - whether all types are trivially destructible
> - whether the variant is single- or double-buffered
> - whether the type we're constructing is nothrow constructible from the
> arguments
> - whether all contained types are trivially move constructible and move
> assignable
> - and finally, whether, in the single buffered case, we have a monostate
> type
>

Do I need to remember all of the above to correctly use variant2 (and not
run into trouble)?

degski

-- 
*"Big boys don't cry" - **Eric Stewart, Graham Gouldman*

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