[Issue 19037] New: Nullable should use moveEmplace to support any type.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 28 06:42:02 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=19037

          Issue ID: 19037
           Summary: Nullable should use moveEmplace to support any type.
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: default_357-line at yahoo.de

For instance, right now Nullable does not work with a struct that has @disable
this() and SysTime, because SysTime requires opAssign, which would let the
struct notice that it's being called on an uninitialized value.

move/moveEmplace could probably be used to avoid this, by avoiding the opAssign
call entirely.

--


More information about the Digitalmars-d-bugs mailing list