Mallocator and 'shared'
Nicholas Wilson via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Feb 10 20:38:47 PST 2017
On Friday, 10 February 2017 at 23:57:18 UTC, bitwise wrote:
> https://github.com/dlang/phobos/blob/cd7846eb96ea7d2fa65ccb04b4ca5d5b0d1d4a63/std/experimental/allocator/mallocator.d#L63-L65
>
> Looking at Mallocator, the use of 'shared' doesn't seem correct
> to me.
>
> [...]
IIRC you're supposed to use `Mallocator.instance` as it is a
singleton.
More information about the Digitalmars-d-learn
mailing list