WAT: opCmp and opEquals woes

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 25 15:33:24 PDT 2014


On 7/25/2014 3:31 PM, Walter Bright wrote:
> On 7/25/2014 2:44 PM, H. S. Teoh via Digitalmars-d wrote:
>> Uncommenting the const in opCmp fixes the problem.  WAT?
>
> opCmp must be const in order to be recognized for TypeInfo.
>

See https://dlang.org/operatoroverloading#compare


More information about the Digitalmars-d mailing list