digitalmars.D.bugs - [Issue 17026] New: std.conv.emplace could be safe if the
- via Digitalmars-d-bugs (19/20) Dec 24 2016 https://issues.dlang.org/show_bug.cgi?id=17026
https://issues.dlang.org/show_bug.cgi?id=17026 Issue ID: 17026 Summary: std.conv.emplace could be safe if the constructor is so Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Keywords: trivial Severity: enhancement Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: greeenify gmail.com http://dlang.org/phobos/std_conv.html#.emplace It's even marked in the docs:This function can be trusted if the corresponding constructor of T is safe.So it should be able to do this automatically :) --
Dec 24 2016