
12 Aug
2005
12 Aug
'05
6:31 p.m.
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.