diff --git a/modules/juce_core/files/juce_File.h b/modules/juce_core/files/juce_File.h index f59e8c25c3..f1708f2994 100644 --- a/modules/juce_core/files/juce_File.h +++ b/modules/juce_core/files/juce_File.h @@ -1187,3 +1187,13 @@ private: }; } // namespace juce + +/** @cond */ +namespace std +{ + template <> struct hash + { + size_t operator() (const juce::File& f) const noexcept { return (size_t) f.hashCode64(); } + }; +} +/** @endcond */