Integral types that define opCmp, opEquals

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Tue Mar 6 12:23:48 PST 2007


Henning Hasemann wrote:
>  
>> untested but it might work:
>>
>> const T i;
>> is(i < i);
>>
> 
> I tried this last week or so. Result is:
> found '<' when expecting ')'
> 
> So it seem is() doesnt like "<".

IIRC 'is' tests if a _type_ is valid. Try something like is(typeof(i < i)).



More information about the Digitalmars-d mailing list