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/config/operation.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build2/config') diff --git a/build2/config/operation.cxx b/build2/config/operation.cxx index 8047e61..245aed7 100644 --- a/build2/config/operation.cxx +++ b/build2/config/operation.cxx @@ -86,7 +86,7 @@ namespace build2 if (auto l = root.vars["amalgamation"]) { - const dir_path& d (cast (*l)); + const dir_path& d (cast (l)); ofs << "# Base configuration inherited from " << d << endl << "#" << endl; @@ -188,7 +188,7 @@ namespace build2 // if (auto l = root.vars["subprojects"]) { - for (auto p: cast (*l)) + for (auto p: cast (l)) { const dir_path& pd (p.second); dir_path out_nroot (out_root / pd); @@ -313,7 +313,7 @@ namespace build2 // if (auto l = root.vars["subprojects"]) { - for (auto p: cast (*l)) + for (auto p: cast (l)) { const dir_path& pd (p.second); -- cgit v1.1