Boost logo

Boost :

Subject: Re: [boost] Review request for Boost.Align
From: Peter Dimov (lists_at_[hidden])
Date: 2014-02-20 06:26:19


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.


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