aboutsummaryrefslogtreecommitdiff
path: root/build/path
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-01-16 14:11:14 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-01-16 14:11:14 +0200
commitc106259517d7693ea8e24564bc890fe575d5edcd (patch)
treebbf87f83edeaf60ff3dfa6fff33c6b7504f5318b /build/path
parentdf50091259a34fa4718f38c0e3b7b64f6e2469ac (diff)
Implement rule chaining for cxx::link
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 dbd048d..49d543c 100644
--- a/build/path
+++ b/build/path
@@ -304,6 +304,12 @@ namespace build
return basic_path (path_ + s);
}
+ basic_path
+ operator+ (C c) const
+ {
+ return basic_path (path_ + c);
+ }
+
basic_path&
operator+= (string_type const& s)
{
@@ -311,6 +317,13 @@ namespace build
return *this;
}
+ basic_path&
+ operator+= (C c)
+ {
+ path_ += c;
+ return *this;
+ }
+
// Note that comparison is case-insensitive if the filesystem is
// not case-sensitive (e.g., Windows).
//