$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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:
[snip]
>>template<int buffer_size>
>>struct any {
>> char buffer[buffer_size];
[snip]
> char[buffer_size] generates properly aligned storage for something of
> size buffer_size only when used in a new expression:
[snip]
> Anyway, perhaps you could into boost::aligned_storage for your purposes.
Couldn't the code from boost::detail::make_storage defined in:
http://cvs.sourceforge.net/viewcvs.py/boost/boost/boost/variant/variant.hpp
be copied and modified somehow to solve the problem? It uses
boost::aligned_storage.