diff -r 0f80a2e5e42b -r 1a9eac27698d src/main.h --- a/src/main.h Fri Feb 07 02:02:16 2020 +0200 +++ b/src/main.h Fri Feb 07 23:59:06 2020 +0200 @@ -41,6 +41,14 @@ { return this->value < other.value; } + friend constexpr unsigned int qHash(ldraw::Id id) + { + return qHash(id.value); + } + friend bool operator==(ldraw::Id one, ldraw::Id other) + { + return one.value == other.value; + } }; using id_t = Id; constexpr id_t NULL_ID = id_t{0};