diff --git a/engine/utility/include/path.hpp b/engine/utility/include/path.hpp index 6449dcb..0e82120 100755 --- a/engine/utility/include/path.hpp +++ b/engine/utility/include/path.hpp @@ -1,7 +1,18 @@ #pragma once #include +#include namespace prism { using path = std::filesystem::path; } + +// some stdlibs such as apple's clang fail to provide this :-/ +namespace std { + template <> + struct hash { + std::size_t operator()(const prism::path& k) const { + return (std::hash()(k.string())); + } + }; +} \ No newline at end of file