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 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).
//