Hi!

I just played around with the new QMetaType::registerComparators() in
Qt5.2.0. Very useful.

But I currently wonder why the internal function QMetaType::compare() simply
returns false in case no comparator functions for the given type have been
registered.
I think silently returning false here can lead to nasty bugs if one forgets
to register a type's operators (actually I just experienced this).

Why is there no assertion? Or maybe a warning? Is there any sense in
comparing QVariants that can not be compared? 

-- 
Kind Regards
Dipl. Ing. (FH) Bernhard Lindner

<<attachment: winmail.dat>>

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to