mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Moved the UUID hashing template to the header file
This commit is contained in:
parent
d81ce3ce03
commit
a968c9dd6b
2 changed files with 10 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Add a link
Reference in a new issue