monarch_dodra:

struct S
{
    int opCmp(S b)
    {
      if(v[0] < b.v[0]) return -1;
      if(v[0] > b.v[0]) return  1;
      return 0;
    }
    int[] v;
}
...
Or did you mean something else?

I meant without a definend opCmp. So this is not your problem.

Bye,
bearophile

Reply via email to