Thread overview
[Issue 13354] Algebraic.opIndex/opIndexAssign makes wrong assumptions on the index/value type
Aug 22, 2014
Sönke Ludwig
Aug 23, 2014
Dicebot
Aug 23, 2014
Dicebot
August 22, 2014
https://issues.dlang.org/show_bug.cgi?id=13354

Sönke Ludwig <sludwig@outerproduct.org> changed:

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

--- Comment #1 from Sönke Ludwig <sludwig@outerproduct.org> ---
https://github.com/D-Programming-Language/phobos/pull/2453

--
August 23, 2014
https://issues.dlang.org/show_bug.cgi?id=13354

Dicebot <public@dicebot.lv> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |public@dicebot.lv

--- Comment #2 from Dicebot <public@dicebot.lv> ---
For the reference, error is "Error: static assert  "Cannot store a string in a VariantN!(16LU, int[string], int[])""

--
August 23, 2014
https://issues.dlang.org/show_bug.cgi?id=13354

Dicebot <public@dicebot.lv> changed:

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

--- Comment #3 from Dicebot <public@dicebot.lv> ---


*** This issue has been marked as a duplicate of issue 7449 ***

--
September 06, 2014
https://issues.dlang.org/show_bug.cgi?id=13354

--- Comment #4 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/352dee3a8961f6b0403ae781145b8e3d881ab447
Fix issue #13354 - Use a generic Variant for passing opIndex/opIndexAssign
arguments.

Also improves the error message when an incompatible index or value type is used by printing the actual type ID instead of "void[]" in the thrown exception.

https://github.com/D-Programming-Language/phobos/commit/9c8a1a5dfed7f0dc29c22da936fe964f0042562e Merge pull request #2453 from s-ludwig/issue_13354

Fix issue #13354 - Use a generic Variant for passing opIndex/opIndexAssign arguments.

--