Stdlibs in 2023 finally provide hash for std::filesystem::path!
This commit is contained in:
parent
4a39a96017
commit
3c96697c03
1 changed files with 1 additions and 10 deletions
|
@ -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
|
||||
}
|
Reference in a new issue