std.experimental.allocator.mallocator. AlignedMallocator does not have alignedRealocate
This is an ER only for Posix actually. Under Windows, 1. the MS std C lib has the right primitive. 2. the allocator has custom primitives for the Mars std C lib (which does a new alloc + copy) Under Posix, the alligned alloc routines exist but only alloc / free. So because of 2. i don't see why alloc + copy wouldn't not be done for Posix.
PR https://github.com/dlang/phobos/pull/5857
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/a196f171f6cc0d6936d7b2d5fc4fc7e38b026514 fix issue 16398 - experimental allocators, add aligned reallocation for Posix https://github.com/dlang/phobos/commit/0308bd6b9a080501b931f43d1e39b1c3cf79c29a Merge pull request #5857 from BBasile/issue-16398 fix issue 16398 - experimental allocators, add aligned reallocation for Posix
Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/a196f171f6cc0d6936d7b2d5fc4fc7e38b026514 fix issue 16398 - experimental allocators, add aligned reallocation for Posix https://github.com/dlang/phobos/commit/0308bd6b9a080501b931f43d1e39b1c3cf79c29a Merge pull request #5857 from BBasile/issue-16398