aboutsummaryrefslogtreecommitdiff
path: root/build/scope
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-08 14:40:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-08 14:40:15 +0200
commit650d61845b3f61e9596a8a2dc97458998ba26013 (patch)
treeb0ce0b66bfd053ffb38849589404957cde0f12dc /build/scope
parent402bb6e6b297614226c4f848ebdb13fd49a95d76 (diff)
Implement automatic amalgamation discovery
Diffstat (limited to 'build/scope')
-rw-r--r--build/scope10
1 files changed, 2 insertions, 8 deletions
diff --git a/build/scope b/build/scope
index d1cd941..817ee95 100644
--- a/build/scope
+++ b/build/scope
@@ -70,16 +70,10 @@ namespace build
// returned.
//
value_proxy
- assign (const variable& var)
- {
- return vars.assign (var);
- }
+ assign (const variable& var) {return vars.assign (var).first;}
value_proxy
- assign (const std::string& name)
- {
- return assign (variable_pool.find (name));
- }
+ assign (const std::string& name) {return vars.assign (name).first;}
// Return a value_proxy suitable for appending. If the variable
// does not exist in this scope's map, then outer scopes are