From ad720fabd468974e3909f62a0f4e4e3cf0d03aef Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 15 Apr 2015 11:59:58 +0200 Subject: Initial library support --- build/variable.ixx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'build/variable.ixx') 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 ().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))); -- cgit v1.1