aboutsummaryrefslogtreecommitdiff
path: root/build/variable.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-15 11:59:58 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-15 11:59:58 +0200
commitad720fabd468974e3909f62a0f4e4e3cf0d03aef (patch)
tree8c6b7d851e42a42118b28488a9a3def8e86cd849 /build/variable.ixx
parentace1743f7f78bb13f99553d6e97ad1beecf1ba99 (diff)
Initial library support
Diffstat (limited to 'build/variable.ixx')
-rw-r--r--build/variable.ixx11
1 files changed, 11 insertions, 0 deletions
diff --git a/build/variable.ixx b/build/variable.ixx
index 2d52d9f..c0059c5 100644
--- a/build/variable.ixx
+++ b/build/variable.ixx
@@ -37,6 +37,17 @@ namespace build
}
inline const value_proxy& value_proxy::
+ operator+= (std::string v) const
+ {
+ if (*p == nullptr)
+ *this = v;
+ else
+ as<list_value&> ().emplace_back (std::move (v));
+
+ return *this;
+ }
+
+ inline const value_proxy& value_proxy::
operator= (dir_path v) const
{
p->reset (new list_value (std::move (v)));