Archived
1
Fork 0

Stdlibs in 2023 finally provide hash for std::filesystem::path!

This commit is contained in:
Joshua Goins 2023-02-11 13:15:15 -05:00
parent 4a39a96017
commit 3c96697c03

View file

@ -5,13 +5,4 @@
namespace prism {
using path = std::filesystem::path;
}
// some stdlibs such as apple's clang fail to provide this :-/
namespace std {
template<> struct hash<prism::path> {
std::size_t operator()(const prism::path& k) const {
return (std::hash<std::string>()(k.string()));
}
};
} // namespace std
}