diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-08-11 12:12:19 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-08-11 12:12:19 +0200 |
commit | 446c6548a1b61a18a27e24320a53a66a3ef7008a (patch) | |
tree | 5508118f836b9faf1cb5ca432a746fc981266af1 | |
parent | 18a458e37b454e3d2cd475543d1a60887ddb2e97 (diff) |
Add another variable_pool::insert() overload
-rw-r--r-- | libbuild2/variable.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libbuild2/variable.hxx b/libbuild2/variable.hxx index 08d4612..99eb3aa 100644 --- a/libbuild2/variable.hxx +++ b/libbuild2/variable.hxx @@ -1159,6 +1159,15 @@ namespace build2 move (name), &value_traits<T>::value_type, &v, &overridable); } + const variable& + insert (string name, + const value_type* type, + bool overridable, + variable_visibility v) + { + return insert (move (name), type, &v, &overridable); + } + // Alias an existing variable with a new name. // // Aliasing is purely a lookup-level mechanism. That is, when variable_map |