On Sunday, 24 August 2014 at 13:27:01 UTC, Jacob Carlborg wrote:
On 2014-08-24 14:18, Kagamin wrote:
Shouldn't emplace and destroy infer their attributes instead
of strictly
annotating them as nogc.
If they are templates, I guess they should. I don't know how
good the compiler is at inferring attributes. I also haven't
looked at the source code for these functions so I don't know
if there's anything stopping them from begin @nogc.
emplace calls constructor, and constructor can't be realistically
required to be nogc. It depends on the constructor. Similar for
destroy.