[Issue 16398] aligned allocator: aligned reallocation is not defined

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 13 00:01:36 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=16398

Basile B. <b2.temp at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp at gmx.com

--- Comment #1 from Basile B. <b2.temp at gmx.com> ---
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.

--


More information about the Digitalmars-d-bugs mailing list