Browse Source

Moved the UUID hashing template to the header file

tags/2021-05-28
Tom Poole 6 years ago
parent
commit
a968c9dd6b
2 changed files with 10 additions and 10 deletions
  1. +0
    -10
      modules/juce_core/misc/juce_Uuid.cpp
  2. +10
    -0
      modules/juce_core/misc/juce_Uuid.h

+ 0
- 10
modules/juce_core/misc/juce_Uuid.cpp View File

@@ -145,13 +145,3 @@ uint64 Uuid::hash() const noexcept
}
} // namespace juce
#if ! DOXYGEN
namespace std
{
template <> struct hash<juce::Uuid>
{
size_t operator() (const juce::Uuid& u) const noexcept { return (size_t) u.hash(); }
};
}
#endif

+ 10
- 0
modules/juce_core/misc/juce_Uuid.h View File

@@ -135,3 +135,13 @@ private:
};
} // namespace juce
#if ! DOXYGEN
namespace std
{
template <> struct hash<juce::Uuid>
{
size_t operator() (const juce::Uuid& u) const noexcept { return (size_t) u.hash(); }
};
}
#endif

Loading…
Cancel
Save