Boost logo

Boost :

Subject: Re: [boost] Review request for Boost.Align
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2014-02-20 06:43:20


On Thu, Feb 20, 2014 at 3:26 PM, Peter Dimov <lists_at_[hidden]> wrote:
> Andrey Semashev wrote:
>>
>> Note also that posix_memalign imposes specific requirements on the
>> alignment that are not described in your docs.
>
>
> I'd rather go the other way and round up to a sizeof(void*) multiple in the
> posix_memalign-based implementation. It makes no sense to me for
> aligned_alloc to not work for alignment 1, 2, 4 when sizeof(void*) is 8.
> IOW, it should work for alignof(T) for any T. The posix_memalign-specific
> requirement should not bubble up.

Agreed.


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