Boost logo

Boost :

Subject: Re: [boost] Another variant type (was: [peer review queue tardiness] [was Cleaning out the Boost review queue] Review Queue mem
From: Matt Calabrese (rivorus_at_[hidden])
Date: 2015-04-06 17:53:42


Sorry for the delayed response!

On Sat, Apr 4, 2015 at 5:55 PM, Eric Niebler <eniebler_at_[hidden]> wrote:

> To put an object into aligned storage requires placement new, which is
> not constexpr. Using a recursive union avoids the need for placement new.

Precisely this. Unfortunately, even with the recursive variant, you are
still very limited in what you can do with a constexpr variant.

-- 
-Matt Calabrese

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