diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-04-27 09:35:53 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-04-27 09:35:53 +0200 |
commit | 197ac5950ea129b7b0dba4fd460b3b630d490fe1 (patch) | |
tree | 76b5656c2fd010ef909169a49f3e28e3475158dc /libbuild2/variable.ixx | |
parent | 64eb9a61dd9bdac1006821af187f48df19b64792 (diff) |
Add support for untyped assignment to value
Diffstat (limited to 'libbuild2/variable.ixx')
-rw-r--r-- | libbuild2/variable.ixx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libbuild2/variable.ixx b/libbuild2/variable.ixx index 4688d27..50cce78 100644 --- a/libbuild2/variable.ixx +++ b/libbuild2/variable.ixx @@ -101,6 +101,22 @@ namespace build2 return *this; } + inline value& value:: + operator= (names v) + { + assert (type == nullptr); + assign (move (v), nullptr); + return *this; + } + + inline value& value:: + operator+= (names v) + { + assert (type == nullptr); + append (move (v), nullptr); + return *this; + } + inline void value:: assign (name&& n, const variable* var) { |