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/prerequisite | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'build/prerequisite') diff --git a/build/prerequisite b/build/prerequisite index 529b225..e33feb6 100644 --- a/build/prerequisite +++ b/build/prerequisite @@ -81,7 +81,7 @@ namespace build // template bool - is_a () const {return type.id == typeid (T);} + is_a () const {return type.is_a ();} }; inline bool @@ -107,6 +107,12 @@ namespace build const std::string* ext, scope&, tracer&); + + std::pair + insert (const target_key& tk, scope& s, tracer& t) + { + return insert (*tk.type, *tk.dir, *tk.name, *tk.ext, s, t); + } }; } -- cgit v1.1