|
Boost : |
Subject: Re: [boost] Interest in Boost.Array companion: StaticVector - A statically allocated fixed capacity vector
From: Nevin Liber (nevin_at_[hidden])
Date: 2011-08-15 17:20:12
On 15 August 2011 16:05, Andrew Hundt <athundt_at_[hidden]> wrote:
> Good point. I've modified elems to be a char array, and I now
> reinterpret_cast to the class T as necessary. Elements should only be
> constructed when they are added now.
>
What are you doing about alignment? Take a look at Synyhesizing Types with
Specific Alignments in the Type Traits library for a start.
-- Nevin ":-)" Liber <mailto:nevin_at_[hidden]> (847) 691-1404
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk