30 Mar
2014
30 Mar
'14
9:36 a.m.
On Sun, Mar 30, 2014 at 1:46 AM, Peter Dimov
I don't agree with the change in aligned_alloc requirements that would undefine its behavior when 'alignment' is not a fundamental or an extended alignment value. There are cases in which one needs memory aligned at values that are not specific to the C++ implementation but come from hardware or the OS, determined at runtime, such as the page size, cache line size, sector size.
Makes sense. Even the C11 specification for its aligned_alloc() doesn't require that alignment's value be a fundamental or extended alignment. Ideally align() could also have the same relaxed requirements but C++11 specifies otherwise. Glen