@safe containers with std.experimental.allocator
bitwise via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jan 20 18:47:49 PST 2017
When std.experimental.allocator was created, I was under the
impression it was meant to be used to make containers. But since
allocate() returns void[], casts are required before using that
memory, which is unsafe.
Is my only option to wrap the casts in an @trusted helper
function? or am I missing something?
Thanks
More information about the Digitalmars-d
mailing list