I wrote: > there is hope that some systems (maybe native Windows?) > may get aligned_alloc sooner than posix_memalign.
Oh, I was too naïve. Citing Microsoft [1][2]: "aligned_alloc() will probably never be implemented, as C11 specified it in a way that’s incompatible with our implementation (namely, that free() must be able to handle highly aligned allocations)." Bruno [1] https://devblogs.microsoft.com/cppblog/announcing-msvc-conforms-to-the-c-standard/ [2] https://devblogs.microsoft.com/cppblog/c17-features-and-stl-fixes-in-vs-2017-15-3/