------- Comment #1 from [EMAIL PROTECTED] 2008-11-28 13:11 -------
Just a stab in the dark, but you might try making the argument to opCmp 'const
MyStruct' or 'const MyStruct*'. An opCmp shouldn't generally modify its
argument so maybe DMD expects a 'const' in the signature.
Also, when it comes to opCmp be aware of #1861. At least in D1, using a
pointer argument works for .sort, but it doesn't work for regular a<b struct