Archived
1
Fork 0

Remove duplicate std::filesystem::path hash function

Recent c++ std implementations now provide this (like they should've
from the beginning...)
This commit is contained in:
Joshua Goins 2022-05-21 16:27:07 -04:00
parent 55fea3e31c
commit 94b83f4996

View file

@ -9,15 +9,6 @@
#include "asset_types.hpp" #include "asset_types.hpp"
#include "string_utils.hpp" #include "string_utils.hpp"
namespace std {
template <>
struct hash<prism::path> {
std::size_t operator()(const prism::path& k) const {
return (std::hash<std::string>()(k.string()));
}
};
}
template<typename T> template<typename T>
std::unique_ptr<T> load_asset(const prism::path& p); std::unique_ptr<T> load_asset(const prism::path& p);