From 3ce44330cca9dbc4314feebb27403ebc3175b6c2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 28 Mar 2016 09:14:31 +0200 Subject: New variable architecture --- build2/dist/operation.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'build2/dist') diff --git a/build2/dist/operation.cxx b/build2/dist/operation.cxx index d1c2266..4489485 100644 --- a/build2/dist/operation.cxx +++ b/build2/dist/operation.cxx @@ -90,7 +90,7 @@ namespace build2 fail << "unknown root distribution directory" << info << "did you forget to specify config.dist.root?"; - const dir_path& dist_root (as (*l)); + const dir_path& dist_root (cast (*l)); if (!dir_exists (dist_root)) fail << "root distribution directory " << dist_root @@ -102,8 +102,8 @@ namespace build2 fail << "unknown distribution package name" << info << "did you forget to set dist.package?"; - const string& dist_package (as (*l)); - const string& dist_cmd (as (*rs->vars["dist.cmd"])); + const string& dist_package (cast (*l)); + const string& dist_cmd (cast (*rs->vars["dist.cmd"])); // Get the list of operations supported by this project. Skip // default_id. @@ -171,7 +171,7 @@ namespace build2 // if (auto l = rs->vars["subprojects"]) { - for (auto p: as (*l)) + for (auto p: cast (*l)) { const dir_path& pd (p.second); dir_path out_nroot (out_root / pd); @@ -209,7 +209,7 @@ namespace build2 // auto l ((*ft)[dist_var]); - if (l && !as (*l)) + if (l && !cast (*l)) l5 ([&]{trace << "excluding " << *ft;}); else files.push_back (ft); @@ -223,7 +223,7 @@ namespace build2 // auto l ((*ft)[dist_var]); - if (l && as (*l)) + if (l && cast (*l)) { l5 ([&]{trace << "including " << *ft;}); files.push_back (ft); @@ -295,7 +295,7 @@ namespace build2 // if (auto l = rs->vars["dist.archives"]) { - for (const string& e: as (*l)) + for (const string& e: cast (*l)) archive (dist_root, dist_package, e); } } -- cgit v1.1