aboutsummaryrefslogtreecommitdiff
path: root/build2/variable
diff options
context:
space:
mode:
Diffstat (limited to 'build2/variable')
-rw-r--r--build2/variable6
1 files changed, 5 insertions, 1 deletions
diff --git a/build2/variable b/build2/variable
index 9888aa0..d6be976 100644
--- a/build2/variable
+++ b/build2/variable
@@ -691,7 +691,11 @@ namespace build2
}
const variable&
- find (const string& name);
+ find (const string& name); //@@ TODO: Move to operator[], remove.
+ //@@ ranmae var_pool to varpool or vpool?
+
+ const variable&
+ operator[] (const string& name) {return find (name);}
using variable_pool_base::clear;