From b262d2c9c56eed18d043dccefac02b54a6ae2f95 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 30 Jan 2017 11:12:25 +0200 Subject: Implement pattern-based variable typing, tighten variable type update --- build2/module.cxx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'build2/module.cxx') 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 (name + ".loaded", - variable_visibility::project)); - - const variable& cv (vp.insert (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; } -- cgit v1.1