Added toHash function for usage of ObjectPath as KeyType in AAs
This commit is contained in:
parent
0439a1e8db
commit
884b31fa9f
|
@ -42,6 +42,10 @@ struct ObjectPath {
|
|||
return _value;
|
||||
}
|
||||
|
||||
size_t toHash() const pure nothrow @trusted {
|
||||
return hashOf(_value);
|
||||
}
|
||||
|
||||
bool opEquals(const ObjectPath b) const {
|
||||
return _value == b._value;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue