tuple(tuple(1)) fails to compile, but tuple(tuple(1),1) works

Timon Gehr timon.gehr at gmx.ch
Thu Sep 20 16:32:50 PDT 2012


On 09/21/2012 01:04 AM, timotheecour wrote:
> inconsistent:
> auto a1=tuple(tuple(1));//CT error
> auto a2=tuple(tuple(1),1);//works
>
> bug?

Yes. In general, if there is a compile time error other than a static
assertion failure that points to Phobos code, you can assume that it is
a library bug.


More information about the Digitalmars-d-learn mailing list