From 69801c4e23f877359118e55ed291737f4fbece04 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 28 Mar 2016 09:45:20 +0200 Subject: Add variable cast from lookup --- build2/cli/module.cxx | 4 ++-- build2/cli/rule.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'build2/cli') diff --git a/build2/cli/module.cxx b/build2/cli/module.cxx index 907bd0b..4e81908 100644 --- a/build2/cli/module.cxx +++ b/build2/cli/module.cxx @@ -45,7 +45,7 @@ namespace build2 { auto l (base["cxx.loaded"]); - if (!l || !cast (*l)) + if (!l || !cast (l)) fail (loc) << "cxx module must be loaded before cli"; } @@ -90,7 +90,7 @@ namespace build2 { auto l (root["config.cli.configured"]); - if (l && !cast (*l)) + if (l && !cast (l)) return false; } diff --git a/build2/cli/rule.cxx b/build2/cli/rule.cxx index 243c6aa..de14aa1 100644 --- a/build2/cli/rule.cxx +++ b/build2/cli/rule.cxx @@ -244,7 +244,7 @@ namespace build2 path rels (relative (s->path ())); scope& rs (t.root_scope ()); - const string& cli (cast (*rs["config.cli"])); + const string& cli (cast (rs["config.cli"])); cstrings args {cli.c_str ()}; -- cgit v1.1