static if else behavior and is type comparison
Ali Çehreli via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Mar 11 00:21:33 PST 2016
You've been bitten by a common usability issue. :)
On 03/11/2016 12:02 AM, Fynn Schröder wrote:
> static if (is(U == ubyte)) {
> pragma(msg, "is ubyte");
> return fnUbyte();
> } else if (is(U == ushort)) {
You mean 'else static if'. (Not your fault: I (and others) wish the
compiler warned about this problem.)
Ali
More information about the Digitalmars-d-learn
mailing list