All pastes #502339 Raw Edit

Someone

public text v1 · immutable
·published 2007-05-22 14:06 UTC
rendered paste body
#include <qhash.h>

struct MyStruct
{
    int a;
    MyStruct() : a(0) {}
    bool operator==(const MyStruct &other) const
    { return a == other.a; }
};

uint qHash(const MyStruct &)
{
    return 0;
}

int main()
{
    QHash<MyStruct, int> hash;
    return hash.value(MyStruct());
}