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
382 B
C++
Raw Normal View History

2020-09-21 09:37:52 -04:00
#pragma once
#include <filesystem>
#include <optional>
2020-09-21 09:37:52 -04:00
namespace prism {
2021-05-12 09:05:56 -04:00
using path = std::filesystem::path;
2020-09-21 09:37:52 -04:00
}
// 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()));
}
};
}