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

Vladimir Panteleev vladimir at thecybershadow.net
Sat Nov 12 08:23:24 PST 2011


On Sat, 12 Nov 2011 17:17:29 +0200, Adam D. Ruppe  
<destructionator at gmail.com> wrote:

> auto heap = new S;

Won't work if S has a constructor (which was the OP's case).

-- 
Best regards,
  Vladimir                            mailto:vladimir at thecybershadow.net


More information about the Digitalmars-d mailing list