[Development] Should QVariant be doing fuzzy comparisons on doubles?

Marc Mutz marc.mutz at kdab.com
Tue Sep 20 12:57:49 CEST 2016


On Tuesday 20 September 2016 12:44:04 Olivier Goffart wrote:
> > It is easy to forget registering comparator functions and currently Qt
> > doesn't help in debugging such issues. So I wonder if QVariant should
> > forbid comparison of custom types without having a comparator function
> > registered.
> 
> That's a source incompatible change.

But one of the type we allow (fixes still compile and work with older Qt), in 
line with adding `explicit` to ctors that miss it.

Thanks,
Marc

-- 
Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
Tel: +49-30-521325470
KDAB - Qt, C++ and OpenGL Experts



More information about the Development mailing list