From bcfcc38538af8bb896551c9e5730767807ad7a67 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 7 Feb 2017 10:05:47 +0200 Subject: Tighten code that operates during both search/match and execute --- build2/target | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'build2/target') diff --git a/build2/target b/build2/target index 7653da6..2eb6a2c 100644 --- a/build2/target +++ b/build2/target @@ -1029,6 +1029,18 @@ namespace build2 return find (target_key {&type, &dir, &out, &name, ext}, trace); } + template + T* + find (const target_type& type, + const dir_path& dir, + const dir_path& out, + const string& name, + const optional& ext, + tracer& trace) const + { + return static_cast (find (type, dir, out, name, ext, trace)); + } + // As above but ignore the extension. // template -- cgit v1.1