From 6417a4e6af2b7732ec0da6af24f1a56f7cdada3f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 31 Mar 2016 09:01:50 +0200 Subject: Set part of variable override implementation --- build2/scope | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'build2/scope') diff --git a/build2/scope b/build2/scope index 9878e7f..7ec8c3b 100644 --- a/build2/scope +++ b/build2/scope @@ -143,9 +143,12 @@ namespace build2 value& assign (const string& name) {return vars.assign (name).first.get ();} + // Unlike the two above, assign a non-overridable variable with normal + // visibility. + // template value& - assign (const string& name) {return vars.assign (name).first.get ();} + assign (string name) {return vars.assign (move (name)).first.get ();} // Return a value suitable for appending. If the variable does not // exist in this scope's map, then outer scopes are searched for -- cgit v1.1