From 3c96697c03f12d8a08c7883793c5efc6355999fe Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sat, 11 Feb 2023 13:15:15 -0500 Subject: [PATCH] Stdlibs in 2023 finally provide hash for std::filesystem::path! --- engine/utility/include/path.hpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/engine/utility/include/path.hpp b/engine/utility/include/path.hpp index 886bb74..5935a59 100755 --- a/engine/utility/include/path.hpp +++ b/engine/utility/include/path.hpp @@ -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 { - std::size_t operator()(const prism::path& k) const { - return (std::hash()(k.string())); - } - }; -} // namespace std \ No newline at end of file +} \ No newline at end of file