From 446c6548a1b61a18a27e24320a53a66a3ef7008a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 11 Aug 2020 12:12:19 +0200 Subject: Add another variable_pool::insert() overload --- libbuild2/variable.hxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libbuild2/variable.hxx') 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::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 -- cgit v1.1