aboutsummaryrefslogtreecommitdiff
path: root/build2/cli
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cli')
-rw-r--r--build2/cli/module.cxx10
-rw-r--r--build2/cli/rule.cxx2
2 files changed, 6 insertions, 6 deletions
diff --git a/build2/cli/module.cxx b/build2/cli/module.cxx
index 6497766..907bd0b 100644
--- a/build2/cli/module.cxx
+++ b/build2/cli/module.cxx
@@ -45,7 +45,7 @@ namespace build2
{
auto l (base["cxx.loaded"]);
- if (!l || !as<bool> (*l))
+ if (!l || !cast<bool> (*l))
fail (loc) << "cxx module must be loaded before cli";
}
@@ -90,7 +90,7 @@ namespace build2
{
auto l (root["config.cli.configured"]);
- if (l && !as<bool> (*l))
+ if (l && !cast<bool> (*l))
return false;
}
@@ -175,7 +175,7 @@ namespace build2
else
{
auto p (config::required (root, "config.cli", cli));
- assert (p.second && as<string> (p.first) == cli);
+ assert (p.second && cast<string> (p.first) == cli);
}
}
else
@@ -186,7 +186,7 @@ namespace build2
//
if (p.second)
{
- cli = as<string> (p.first).c_str ();
+ cli = cast<string> (p.first).c_str ();
ver = test (cli);
if (ver.empty ())
@@ -209,7 +209,7 @@ namespace build2
// this merging semantics and some of its tricky aspects.
//
if (const value& v = config::optional (root, "config.cli.options"))
- base.assign ("cli.options") += as<strings> (v);
+ base.assign ("cli.options") += cast<strings> (v);
// Register our rules.
//
diff --git a/build2/cli/rule.cxx b/build2/cli/rule.cxx
index bf52993..243c6aa 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 (as<string> (*rs["config.cli"]));
+ const string& cli (cast<string> (*rs["config.cli"]));
cstrings args {cli.c_str ()};