We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
std::filesystem::path
1 parent 63f9a96 commit 7907812Copy full SHA for 7907812
src/Core/VFS.hh
@@ -4,6 +4,16 @@
4
#include <filesystem>
5
#include <unordered_map>
6
7
+#if defined(__APPLE__) && defined(__MACH__)
8
+// NOTE: only tested on `macOS 10.15.7 (Catalina) 19H15 x86_64` + `AppleClang 12.0.0`
9
+template <>
10
+struct std::hash<std::filesystem::path> {
11
+ std::size_t operator()(const std::filesystem::path &p) const {
12
+ return std::hash<std::string>()(p.string());
13
+ }
14
+};
15
+#endif
16
+
17
namespace volt::core {
18
class VFS {
19
std::unordered_map<std::filesystem::path, std::filesystem::path> m_mountPoints;
0 commit comments