this code compares a CustomVector* to a bool (using QTest::qCompare; as qCompare is declared as a template function, this does indeed compile). It does not link, however, as qCompare<> is not specialized for those types.Qt Code:
QCOMPARE(customVector, result);To copy to clipboard, switch view to plain text mode
(And probably you did not want to compare the pointer to a bool, did you? Doesn't make too much sense.)
Bookmarks