diff options
Diffstat (limited to 'build2/scope')
-rw-r--r-- | build2/scope | 5 |
1 files changed, 4 insertions, 1 deletions
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 <typename T> value& - assign (const string& name) {return vars.assign<T> (name).first.get ();} + assign (string name) {return vars.assign<T> (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 |