Boost logo

Boost Announcement :

Subject: [Boost-announce] Boost.Align review announcement
From: Ahmed Charles (acharles_at_[hidden])
Date: 2014-03-27 22:50:17


Hi everyone, The review of Boost.Align by Glen Fernandes is scheduled from Friday, April 11th to April 20th. Source: http://github.com/glenfe/align Documentation: http://glenfe.github.io/align Description: This library provides function align for implementations which do not have the C++11 standard library align function available.It provides allocation functions aligned_alloc and aligned_free as their functionality is not yet available in the C++ standard library. They use platform specific functions, if available, or use standard library functions in conjunction with align.It provides C++ allocators, class templates aligned_allocator and aligned_allocator_adaptor, which respect alignment. The first uses aligned_alloc and aligned_free while the second uses the allocator in conjunction with align.It also provides function is_aligned to test the alignment of a pointer. Rationale: C++11 added the ability to specify increased alignment (over-alignment) for class types. Unfortunately, ::operator new allocation functions, new expressions, and the default allocator, std::allocator, do not support dynamic memory allocation of over-aligned data. The aligned_alloc function can be used in place of ::operator new to specify the alignment of the memory allocated.The aligned_allocator class template can be used in place of std::allocator as an alignment-aware default allocator.The aligned_allocator_adaptor class template can be used to adapt any allocator into an alignment-aware allocator. Notes: The functionality provided by this library addresses needs in existing Boost libraries as well. Boost.SmartPtr has its own implementation of align, and Boost.Log and Boost.Interprocess have their own implementations of aligned_alloc and aligned_free. Boost List Discussion: http://lists.boost.org/Archives/boost/2014/02/211723.php Review Manager: Ahmed Charles


Boost-announce list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk