aboutsummaryrefslogtreecommitdiff
path: root/build/variable
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-28 15:01:10 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-28 15:01:10 +0200
commit1cf1603cae3064aff734f52d23c06098e81a8111 (patch)
treef82ed15513af3c48f58545b420b6ca1afd1ac9a7 /build/variable
parent99116592590c0face4ec37a2e0308e9c3a2f98dd (diff)
Install module genesis
Diffstat (limited to 'build/variable')
-rw-r--r--build/variable12
1 files changed, 6 insertions, 6 deletions
diff --git a/build/variable b/build/variable
index 368b2f8..809e7d2 100644
--- a/build/variable
+++ b/build/variable
@@ -166,20 +166,20 @@ namespace build
//
template <typename T>
bool
- belongs (const T& x) const {return map == &x.vars;}
+ belongs (const T& x) const {return vars == &x.vars;}
// Implementation details.
//
- const variable_map* map; // Variable map to which this value belongs.
+ const variable_map* vars; // Variable map to which this value belongs.
- value_proxy (): map (nullptr), p (nullptr) {}
- value_proxy (value_ptr* p, const variable_map* m): map (m), p (p) {}
+ value_proxy (): vars (nullptr), p (nullptr) {}
+ value_proxy (value_ptr* p, const variable_map* v): vars (v), p (p) {}
template <typename T>
- value_proxy (value_ptr& p, const T& x): map (&x.vars), p (&p) {}
+ value_proxy (value_ptr& p, const T& x): vars (&x.vars), p (&p) {}
void
- rebind (const value_proxy& x) {map = x.map; p = x.p;}
+ rebind (const value_proxy& x) {vars = x.vars; p = x.p;}
private:
value_ptr* p;