All pastes #502350 Raw Edit

Mine

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

struct MyStruct;
QHash<MyStruct, int> hash;

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()
{
    return hash.value(MyStruct());
}