From c8ba24817f37459f1c7c7934184d5d95db11daa2 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Mon, 24 Aug 2015 17:09:52 -0700 Subject: [PATCH] fix for hash specialization for QUuid --- libraries/networking/src/UUIDHasher.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/libraries/networking/src/UUIDHasher.h b/libraries/networking/src/UUIDHasher.h index b05e517841..0bdfe9792a 100644 --- a/libraries/networking/src/UUIDHasher.h +++ b/libraries/networking/src/UUIDHasher.h @@ -24,10 +24,13 @@ public: } }; -template <> struct std::hash { - size_t operator()(const QUuid& uuid) const { - return qHash(uuid); - } -}; +namespace std { + template <> struct hash { + size_t operator()(const QUuid& uuid) const { + return qHash(uuid); + } + }; +} + #endif // hifi_UUIDHasher_h