[Issue 15313] std.conv.emplace cannot initialize const objects

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Nov 10 14:21:46 PST 2015


https://issues.dlang.org/show_bug.cgi?id=15313

--- Comment #2 from Andrei Alexandrescu <andrei at erdani.com> ---
(In reply to ZombineDev from comment #1)
> Andrei, I think you meant to write:
> const Node* n = emplace!(const Node)(buf, 42, null, 10);

Correct, thanks! By mistake I pasted the minimally changed code that does work.

--


More information about the Digitalmars-d-bugs mailing list