[Issue 11061] std.variant.Variant equality comparison always returns false for static array literals.

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon May 19 23:15:37 PDT 2014


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

--- Comment #1 from Kapps <opantm2+dbugs at gmail.com> ---
The actual problem here is that v1 == [0, 1, 2, 3] isn't a check against a
static array, but rather a check against a dynamic array. I don't think there's
a solution besides making it so arrays in Variant can be compared to other
arrays/Variants regardless of whether they're static or dynamic arrays.

--


More information about the Digitalmars-d-bugs mailing list