From a968c9dd6b78b417150c94d5a4aeb30ff83a61ea Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Wed, 5 Dec 2018 15:00:04 +0000 Subject: [PATCH] Moved the UUID hashing template to the header file --- modules/juce_core/misc/juce_Uuid.cpp | 10 ---------- modules/juce_core/misc/juce_Uuid.h | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/modules/juce_core/misc/juce_Uuid.cpp b/modules/juce_core/misc/juce_Uuid.cpp index b4a830cf29..5bb56d23aa 100644 --- a/modules/juce_core/misc/juce_Uuid.cpp +++ b/modules/juce_core/misc/juce_Uuid.cpp @@ -145,13 +145,3 @@ uint64 Uuid::hash() const noexcept } } // namespace juce - -#if ! DOXYGEN -namespace std -{ - template <> struct hash - { - size_t operator() (const juce::Uuid& u) const noexcept { return (size_t) u.hash(); } - }; -} -#endif diff --git a/modules/juce_core/misc/juce_Uuid.h b/modules/juce_core/misc/juce_Uuid.h index f15d6e8724..660c96fa13 100644 --- a/modules/juce_core/misc/juce_Uuid.h +++ b/modules/juce_core/misc/juce_Uuid.h @@ -135,3 +135,13 @@ private: }; } // namespace juce + +#if ! DOXYGEN +namespace std +{ + template <> struct hash + { + size_t operator() (const juce::Uuid& u) const noexcept { return (size_t) u.hash(); } + }; +} +#endif