Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
prism/engine/utility/include/path.hpp

18 lines
No EOL
382 B
C++
Executable file

#pragma once
#include <filesystem>
#include <optional>
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()));
}
};
}