www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Shouldn't std.conv.emplace be nogc?

reply drug <drug2004 bk.ru> writes:
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.
Mar 02 2015
next sibling parent "Tobias Pankrath" <tobias pankrath.net> writes:
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.
Mar 02 2015
prev sibling next sibling parent "Adam D. Ruppe" <destructionator gmail.com> writes:
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.
Mar 02 2015
prev sibling parent "Kapps" <opantm2+spam gmail.com> writes:
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
Mar 02 2015