diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-02-07 11:40:07 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-02-13 12:42:42 +0200 |
commit | db2a696f810e41189bcdf5524696ff3d0cfbe5a9 (patch) | |
tree | 754c198967576ce9c9bdb9b07fdb90ad05b0d8d3 /build2/algorithm.ixx | |
parent | bcfcc38538af8bb896551c9e5730767807ad7a67 (diff) |
Use target:as<> instead of static_cast for target casting
Diffstat (limited to 'build2/algorithm.ixx')
-rw-r--r-- | build2/algorithm.ixx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/algorithm.ixx b/build2/algorithm.ixx index 0c171fd..b8c33d4 100644 --- a/build2/algorithm.ixx +++ b/build2/algorithm.ixx @@ -56,8 +56,8 @@ namespace build2 const string* ext, const scope* scope) { - return static_cast<T&> ( - search (T::static_type, dir, out, name, ext, scope)); + return search ( + T::static_type, dir, out, name, ext, scope).template as<T> (); } pair<const rule*, match_result> |