Bug 19037 – Nullable should use moveEmplace to support any type.
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2018-06-28T06:42:02Z
Last change time
2018-07-28T04:14:06Z
Assigned to
No Owner
Creator
FeepingCreature
Comments
Comment #0 by default_357-line — 2018-06-28T06:42:02Z
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.
Comment #1 by default_357-line — 2018-06-28T06:44:31Z