Boost logo

Boost :

Subject: [boost] [variant2] Comments on documentation
From: Bjorn Reese (breese_at_[hidden])
Date: 2019-04-07 09:32:20


The overview states that "variant<T...> is not trivial when all
contained types are trivial". Why not? Is this an advantage somehow or
an unfortunate limitation?

Why is there no tutorial?

Why is there no design rationale?

Change "variant_npos = -1" into "variant_npos = unspecified"

Add a comment about the purpose of valuesless_by_exception(). Without
such a comment, the function seems very odd on a "never valueless
variant type."

The destructor should be marked as noexcept.


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