Boost logo

Boost :

Subject: Re: [boost] aligned_storage in unions
From: David Abrahams (dave_at_[hidden])
Date: 2010-09-23 10:51:45


On Sep 22, 2010, at 4:03 PM, Mathias Gaunard wrote:
>
>> I thought variant just static_cast<char*> to void* then from void* to
>> T*.
>
> As far as I'm concerned, this is the same thing.

But the standard disagrees.

--
Dave Abrahams
BoostPro Computing
http://boostpro.com

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