|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-01-19 12:43:56
Jason Hise wrote:
> Dave Handley wrote:
>
>> My recommendations for things to look at include:
>>
>> 1) Allocate using malloc as another creation policy
>
> I'm looking at Loki's library and thinking that it has a major bug.
> Doesn't his implementation have the same alignment problems that my
> original static allocator did? Wouldn't it be impossible to ensure
> that memory allocated by malloc was aligned properly?
The memory allocated by malloc and ::operator new is always properly aligned
for any type (sometimes excluding nonstandard types such as __m128).
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk