From 884b31fa9f1b7380730c570760b9d5b5b3586e37 Mon Sep 17 00:00:00 2001 From: "Harry T. Vennik" Date: Sun, 25 Jun 2017 17:00:55 +0200 Subject: [PATCH] Added toHash function for usage of ObjectPath as KeyType in AAs --- source/ddbus/thin.d | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/ddbus/thin.d b/source/ddbus/thin.d index 667bd37..ed64073 100644 --- a/source/ddbus/thin.d +++ b/source/ddbus/thin.d @@ -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; }