← Back to index
|
Original Bugzilla link
Bug 9956 – hasElaborateAssign trait does not work with static arrays
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-04-18T05:30:00Z
Last change time
2013-04-18T05:31:06Z
Keywords
pull
Assigned to
nobody
Creator
andrej.mitrovich
Comments
Comment #0
by andrej.mitrovich — 2013-04-18T05:30:59Z
hasElaborateDestructor works with static arrays, but not hasElaborateAssign: import std.traits; void main() { static struct S { void opAssign(S) {} } static struct S3 { S s; } static assert(hasElaborateAssign!(S[1])); // fails }
Comment #1
by andrej.mitrovich — 2013-04-18T05:31:06Z
https://github.com/D-Programming-Language/phobos/pull/954