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 1a34a48..192ba10 100644 --- a/build2/scope +++ b/build2/scope @@ -142,7 +142,10 @@ namespace build2 assign (const variable& var) {return vars.assign (var).first.get ();} value& - assign (const std::string& name) {return vars.assign (name).first.get ();} + assign (const std::string& name, const build2::value_type* type = nullptr) + { + return vars.assign (name, type).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 |