Thread overview
Shouldn't std.conv.emplace be @nogc?
Mar 02, 2015
drug
Mar 02, 2015
Tobias Pankrath
Mar 02, 2015
Adam D. Ruppe
Mar 02, 2015
Kapps
March 02, 2015
I guess the reason why std.conv.emplace is not @nogc-ed is that nobody added it yet? I didn't see using of gc in the emplace sources.
March 02, 2015
On Monday, 2 March 2015 at 12:37:33 UTC, drug wrote:
> I guess the reason why std.conv.emplace is not @nogc-ed is that nobody added it yet? I didn't see using of gc in the emplace sources.

It's a template and an instance will be @nogc, if possible.
March 02, 2015
It should be automatically inferred. emplace might be used to call constructors that use the GC and putting an explicit @nogc on it forbids that, so it would limit the flexibility.
March 02, 2015
On Monday, 2 March 2015 at 12:37:33 UTC, drug wrote:
> I guess the reason why std.conv.emplace is not @nogc-ed is that nobody added it yet? I didn't see using of gc in the emplace sources.

Soon:
https://github.com/D-Programming-Language/phobos/pull/2999