aboutsummaryrefslogtreecommitdiff
path: root/build/path
diff options
context:
space:
mode:
Diffstat (limited to 'build/path')
-rw-r--r--build/path13
1 files changed, 13 insertions, 0 deletions
diff --git a/build/path b/build/path
index ee7937b..8eb560b 100644
--- a/build/path
+++ b/build/path
@@ -385,6 +385,19 @@ namespace build
*/
}
+namespace std
+{
+ template <typename C>
+ struct hash<build::basic_path<C>>: hash<basic_string<C>>
+ {
+ size_t
+ operator() (const build::basic_path<C>& p) const
+ {
+ return hash<basic_string<C>>::operator() (p.string ());
+ }
+ };
+}
+
#include <build/path.ixx>
#include <build/path.txx>