Boost logo

Boost :

From: Aleksey Gurtovoy (alexy_at_[hidden])
Date: 2001-08-28 11:16:41


Fernando Cacciola wrote:
> If optional<T> is
> created in the stack there's no way to align 'storage'
> properly!)

AFAIK, that's exactly what 'boost::alignment_of<T>' traits class template is
supposed to help with (see 'boost/type_traits/alignment_traits.hpp').

Aleksey


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