Cannot make my shared PureMallocator callable in pure functions

Nordlöw per.nordlow at gmail.com
Sat Feb 17 12:34:07 UTC 2018


On Saturday, 17 February 2018 at 12:33:25 UTC, Nordlöw wrote:
>     PureMallocator.instance.allocate(16);

currently errors as

pure_mallocator.d(84,16): Error: pure function 
'pure_mallocator.__unittest_pure_mallocator_82_0' cannot access 
mutable static data 'instance'


More information about the Digitalmars-d-learn mailing list