今天下午写了如下一段代码:
QSet pointSet;
pointSet.insert(QPoint());
编译后却得到一个编译错误:
error C2665: 'qHash' : none of the 16 overloads could convert all the argument types
1> include/qtcore/../../src/corelib/tools/qhash.h(62): could be 'uint qHash(char)'
1> include/qtcore/../../src/corelib/tools/qhash.h(63): or 'uint qHash(uchar)'
1> include/qtcore/../../src/corelib/tools/qhash.h(64): or 'uint qHash(signed char)'
1> include/qtcore/../../src/corelib/tools/qhash.h(65): or 'uint qHash(ushort)'
1> include/qtcore/../../src/corelib/tools/qhash.h(66): or 'uint qHash(short)'
1> include/qtcore/../../src/corelib/tools/qhash.h(67): or 'uint qHash(uint)'
1> include/qtcore/../../src/corelib/tools/qhash.h(68): or 'uint