msvc: qHash

Peter Kümmel syntheticpp at gmx.net
Wed May 10 22:29:11 CEST 2006


msvc could not match a function for qHash and needs a explicit
definition:

Index: kdecore/ksortablevaluelist.h
===================================================================
--- kdecore/ksortablevaluelist.h        (Revision 538865)
+++ kdecore/ksortablevaluelist.h        (Arbeitskopie)
@@ -168,4 +168,10 @@
 // {
 // };

+
+#ifdef Q_CC_MSVC
+template<class U, class V>
+inline uint qHash(const KSortableItem<U,V>& key) { return uint(&key); }
+#endif
+
 #endif // KSORTABLEVALUELIST_H


Could I apply this patch? Or is there a standard way of handling this?


More information about the Kde-buildsystem mailing list