www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17026] New: std.conv.emplace could be safe if the

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



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