Boost logo

Boost :

Subject: Re: [boost] [aligned storage] support for empty storage
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2009-05-06 09:02:10

John Maddock skrev:
>> In case your are wondering, then I need this functionality in
>> boost::auto_buffer to get rid of the extra word when the stack-buffer
>> is empty (thus making auto_buffer as small as vector).
>> Comments?
> I haven't looked into this in detail, but what happens on compilers that
> don't support the EBO?

I have created another test that passes on vc9 ang gcc4.3.2. The test
sees if the layout changes depending on a non-empty base class is used
or if one uses agregation.

I have attached the patch and the new test.

Is it ok to commit to trunk?


Boost list run by bdawes at, gregod at, cpdaniel at, john at