diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-03-28 09:14:31 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-03-28 16:03:35 +0200 |
commit | 3ce44330cca9dbc4314feebb27403ebc3175b6c2 (patch) | |
tree | 8c1f27442f3b2dafaec3ba50baaca3d5fd63dca7 /build2/test | |
parent | 9d0d078ff297138622cd2f3f1076f5984395e42b (diff) |
New variable architecture
Diffstat (limited to 'build2/test')
-rw-r--r-- | build2/test/rule.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/build2/test/rule.cxx b/build2/test/rule.cxx index efe265b..0b3f59f 100644 --- a/build2/test/rule.cxx +++ b/build2/test/rule.cxx @@ -70,7 +70,7 @@ namespace build2 l = t.base_scope ()[ var_pool.find<bool> (string("test.") + t.type ().name)]; - r = l && as<bool> (*l); + r = l && cast<bool> (*l); } // If this is the update pre-operation, then all we really need to @@ -181,12 +181,12 @@ namespace build2 fail << "both test.roundtrip and test.input/output specified " << "for target " << t; - in = on = &as<name> (*rl); + in = on = &cast<name> (*rl); } else { - in = il ? &as<name> (*il) : nullptr; - on = ol ? &as<name> (*ol) : nullptr; + in = il ? &cast<name> (*il) : nullptr; + on = ol ? &cast<name> (*ol) : nullptr; } // Resolve them to targets, which normally would be existing files @@ -296,7 +296,7 @@ namespace build2 } if (l) - append_options (args, as<strings> (*l)); + append_options (args, cast<strings> (*l)); } // The format of args shall be: |