Boost logo

Boost :

From: Larry Evans (cppljevans_at_[hidden])
Date: 2005-08-12 13:31:52

On 08/11/2005 07:28 AM, Joao Abecasis wrote:
> christopher diggins wrote:
>>template<int buffer_size>
>>struct any {
>> char buffer[buffer_size];
> char[buffer_size] generates properly aligned storage for something of
> size buffer_size only when used in a new expression:
> Anyway, perhaps you could into boost::aligned_storage for your purposes.
Couldn't the code from boost::detail::make_storage defined in:

be copied and modified somehow to solve the problem? It uses

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