[Interest] QVariant compare operator

Bernhard Lindner private at bernhard-lindner.de
Sat Apr 18 20:50:00 CEST 2020


Hi!

> The problem are not missing conversions, but too many conversions.

If it is not possible to document and fix conversions to behave consistently (which should
be possible), it still is reasonable to allow >/< comparisons for equal types only. That
is easy to implement, simple to document, simple to understand and propably better than
removing the feature completely.

However, considering the fact that even ==/!= comparisons with implicit conversion do not
work as expected, it is obvious that removing >/< comparison isn't a solution to the
underlying problem.

-- 
Best Regards,
Bernhard Lindner



More information about the Interest mailing list