[Issue 10879] std.variant Variant/Algebraic: Can't store static arrays > 32(/16) bytes

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Apr 16 06:43:15 PDT 2016


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

Simen Kjaeraas <simen.kjaras at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simen.kjaras at gmail.com

--- Comment #2 from Simen Kjaeraas <simen.kjaras at gmail.com> ---
https://github.com/dlang/phobos/pull/4204

This fixes the problem in Phobos. One could certainly argue that the problem
should be fixed in DMD, and that 'new T' should work for any T.

One problem this PR does not fix is comparison between static arrays and
dynamic arrays when at least one is stored in a Variant.

--


More information about the Digitalmars-d-bugs mailing list