Thread overview
[Issue 11061] std.variant.Variant equality comparison always returns false for static array literals.
May 20, 2014
Kapps
Jun 06, 2019
Dlang Bot
Jun 10, 2019
Dlang Bot
May 20, 2014
https://issues.dlang.org/show_bug.cgi?id=11061

--- Comment #1 from Kapps <opantm2+dbugs@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.

--
June 06, 2019
https://issues.dlang.org/show_bug.cgi?id=11061

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@Zevenberge updated dlang/phobos pull request #7061 "Variant of an array can be compared with another array" fixing this issue:

- fix Issue 11061 - Variant of an array can be compared with another array

  Fixes 11061

https://github.com/dlang/phobos/pull/7061

--
June 10, 2019
https://issues.dlang.org/show_bug.cgi?id=11061

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/phobos pull request #7061 "Variant of an array can be compared with another array" was merged into master:

- 613c0b1f725b7e19295bca0bac9122cc311413de by Marco de Wild:
  fix Issue 11061 - Variant of an array can be compared with another array

  Fixes 11061

https://github.com/dlang/phobos/pull/7061

--