Bug 17026 – std.conv.emplace could be @safe if the constructor is so
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-12-24T08:17:34Z
Last change time
2018-03-31T19:21:19Z
Keywords
trivial
Assigned to
No Owner
Creator
Seb
Comments
Comment #0 by greeenify — 2016-12-24T08:17:34Z
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 :)