Why won't this compile using DMD?

José Armando García Sancio jsancio at gmail.com
Sun Aug 12 10:57:16 PDT 2012


On Sun, Aug 12, 2012 at 7:31 AM, Simen Kjaeraas <simen.kjaras at gmail.com> wrote:
> On Sun, 12 Aug 2012 09:39:13 +0200, Ivan Trombley <itrombley at dot-borg.org>
>>      auto data = new Data(count);
>
>
> should be
>
> auto data = cast(shared)new Data(count);

Or
auto data = new shared(Data)(count);


More information about the Digitalmars-d mailing list