aboutsummaryrefslogtreecommitdiff
path: root/build/path
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-02-19 16:10:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-02-19 16:10:03 +0200
commit8bd89cfca333e58f6990d7d168649dfc79878f31 (patch)
tree730bb9eec4fc5ddd086ed8465c4d7c0030db0d6b /build/path
parentb0524a0b18eec9d5e5c3f6ce30b6cecdd02a6306 (diff)
Add support for sourcing/including buildfiles, print, dir{} alias
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>