On Fri, Feb 28, 2014, Mathias Gaunard wrote:
The code is here if you're interested: https://github.com/MetaScale/nt2/tree/master/modules/boost/simd/sdk/include/...
It has functions to adapt any memory allocating scheme or C++ allocator into an aligned version. It has a mechanism similar to Boost.Assert where you can globally define your underlying custom memory allocator.
It also has functions to make use of system-specific functions, which are used by default.
Thanks. 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. The mechanism to supporting globally defining a custom allocator is interesting. I'll take a look; thanks. Glen