[Issue 17026] New: std.conv.emplace could be @safe if the constructor is so

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Dec 24 00:17:34 PST 2016


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 at puremagic.com
          Reporter: greeenify at 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 :)

--


More information about the Digitalmars-d-bugs mailing list