D needs emplacement new

weaselcat via Digitalmars-d digitalmars-d at puremagic.com
Sat Apr 25 12:21:27 PDT 2015


On Saturday, 25 April 2015 at 19:16:21 UTC, Namespace wrote:
>> hmm...
>> http://dlang.org/phobos/std_conv.html#.emplace
>
>> constructs an object of non-class type T at that address.
>
> Non-Class. ;)

There's a class overload 3 down
T emplace(T, Args...)(void[] chunk, auto ref Args args) if (is(T 
== class));


More information about the Digitalmars-d mailing list