3 Mar
2019
3 Mar
'19
2:19 p.m.
On Sun, 3 Mar 2019 at 14:39, Peter Dimov via Boost
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*