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/target-key | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'build/target-key') diff --git a/build/target-key b/build/target-key index 3875a6a..d791d61 100644 --- a/build/target-key +++ b/build/target-key @@ -28,6 +28,13 @@ namespace build target* (*const factory) (dir_path, std::string, const std::string*); const std::string& (*const extension) (const target_key&, scope&); target* (*const search) (const prerequisite_key&); + + bool + is_a (const std::type_index&) const; // Defined in target.cxx + + template + bool + is_a () const {return is_a (typeid (T));} }; inline std::ostream& -- cgit v1.1