[Issue 14660] std.range.choose() is not CTFE'able

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Mar 4 04:59:22 PST 2016


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

greenify <greeenify at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |greeenify at gmail.com

--- Comment #1 from greenify <greeenify at gmail.com> ---
Hmm I tried to hack it with:

```
alias CT = CommonType!(ElementType!(Unqual!R1), ElementType!(Unqual!R2));

```

It works well for the runtime, but in CTFE one still gets `cast from int* to
int[]* is not supported`.

Using CT[] compiles in CTFE, but returns garbage.

--


More information about the Digitalmars-d-bugs mailing list