diff options
-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 |