bool great<Decimal*, Decimal*>(const void *x,const void *y){ if (((Decimal*)x)->op_equals(*(Decimal*)y)) return false; Decimal tmp = ((Decimal*)x)->op_max(*(Decimal*)y); if (tmp.op_equals(*(Decimal*)x)) return true; return false; }