Boost logo

Boost :

Subject: Re: [boost] boost::aligned_storage broken on VC12 for alignment values of 8
From: Glen Fernandes (glen.fernandes_at_[hidden])
Date: 2014-03-30 13:19:04


On Sun, Mar 30, 2014 at 9:22 AM, Mathias Gaunard wrote:
> AFAIK, with Windows 32-bit, you cannot reliably have an object with
> alignment greater than 4 on the stack.
>

I have seen that VC has notoriously strange alignment and layout rules
for 32-bit code. I wonder if that should inhibit making
boost::aligned_storage<..., N>::type at least as reliable as VC12's
std::aligned_storage<..., N>::type or __declspec(align(8)), both of
which seem to work correctly.

Glen


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