aboutsummaryrefslogtreecommitdiff
path: root/build2/module.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-01-30 11:12:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-02-13 12:42:41 +0200
commitb262d2c9c56eed18d043dccefac02b54a6ae2f95 (patch)
tree010e5c6cce042e0fbf25817a62659d251c220acf /build2/module.cxx
parentf93038fbee1631b95922b0742e0fd00fa8dae02e (diff)
Implement pattern-based variable typing, tighten variable type update
Diffstat (limited to 'build2/module.cxx')
-rw-r--r--build2/module.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/build2/module.cxx b/build2/module.cxx
index 031ae45..6fc33fa 100644
--- a/build2/module.cxx
+++ b/build2/module.cxx
@@ -102,13 +102,11 @@ namespace build2
auto& vp (var_pool.rw (rs));
- const variable& lv (vp.insert<bool> (name + ".loaded",
- variable_visibility::project));
-
- const variable& cv (vp.insert<bool> (name + ".configured",
- variable_visibility::project));
- bs.assign (lv) = l;
- bs.assign (cv) = c;
+ // Note: pattern-typed in context.cxx:reset() as project-visibility
+ // variables of type bool.
+ //
+ bs.assign (vp.insert (name + ".loaded")) = l;
+ bs.assign (vp.insert (name + ".configured")) = c;
return l && c;
}