Boost logo

Boost :

Subject: [boost] Boost.Align aligned_allocator_adaptor review
From: Glen Fernandes (glen.fernandes_at_[hidden])
Date: 2014-03-04 15:20:51


Changing e-mail subject from 'Re: [boost] Boost.Align review request'.

On Fri, Feb 28, 2014, Glen Fernandes wrote:
>
> On Fri, Feb 28, 2014, Mathias Gaunard wrote:
> > It has functions to adapt any memory allocating scheme or C++ allocator into
> > an aligned version.
>
> Related to the first point, I recently implemented class
> template boost::aligned_allocator_adaptor to complement
> boost::aligned_allocator, but I think I could improve the
> implementation.

I've improved the implementation of aligned_allocator_adaptor; it does
two things that I believe SIMD's version does not do yet:
1. It supports C++11 minimal allocators which do not need to provide
all typedefs beyond value_type
2. It supports C++11 allocators which have 'pointer' as a smart
pointer (or otherwise non-raw pointer) type

Code: http://github.com/glenfe/align/blob/master/include/boost/align/aligned_allocator_adaptor.hpp

I'd be happy to contribute this functionality to SIMD's allocator
adaptor, via a patch or pull request, if you're interested.

Glen


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