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: [email protected]
Reporter: [email protected]
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 :)
--