From 70af0087d8efb3f2f7dc9ffdf2568419913f16da Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 30 Jun 2015 15:07:03 +0200 Subject: Group "see through" iteration, take 1 --- build/algorithm.ixx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'build/algorithm.ixx') diff --git a/build/algorithm.ixx b/build/algorithm.ixx index 7300848..bd1f9c7 100644 --- a/build/algorithm.ixx +++ b/build/algorithm.ixx @@ -19,6 +19,13 @@ namespace build } inline target& + search (const target_type& t, const prerequisite_key& k) + { + return search ( + prerequisite_key {{&t, k.tk.dir, k.tk.name, k.tk.ext}, k.scope}); + } + + inline target& search (const target_type& type, const dir_path& dir, const std::string& name, @@ -38,7 +45,7 @@ namespace build return static_cast (search (T::static_type, dir, name, ext, scope)); } - std::pair + std::pair match_impl (action, target&, bool apply); inline void -- cgit v1.1