Copy a struct on the heap and get the pointer to it.

Adam D. Ruppe destructionator at gmail.com
Sat Nov 12 07:17:29 PST 2011


The way I'd do it is:

S s;

auto heap = new S;

*heap = s;


that should work.


More information about the Digitalmars-d mailing list