Added toHash function for usage of ObjectPath as KeyType in AAs

This commit is contained in:
Harry T. Vennik 2017-06-25 17:00:55 +02:00
parent 0439a1e8db
commit 884b31fa9f

View file

@ -42,6 +42,10 @@ struct ObjectPath {
return _value; return _value;
} }
size_t toHash() const pure nothrow @trusted {
return hashOf(_value);
}
bool opEquals(const ObjectPath b) const { bool opEquals(const ObjectPath b) const {
return _value == b._value; return _value == b._value;
} }