aboutsummaryrefslogtreecommitdiff
path: root/build2/prerequisite
diff options
context:
space:
mode:
Diffstat (limited to 'build2/prerequisite')
-rw-r--r--build2/prerequisite4
1 files changed, 4 insertions, 0 deletions
diff --git a/build2/prerequisite b/build2/prerequisite
index e53bb41..156a096 100644
--- a/build2/prerequisite
+++ b/build2/prerequisite
@@ -30,6 +30,10 @@ namespace build2
mutable const string* proj; // Can be NULL, from project_name_pool.
target_key tk; // .dir and .out can be relative.
mutable scope_type* scope; // Can be NULL if tk.dir is absolute.
+
+ template <typename T>
+ bool is_a () const {return tk.is_a<T> ();}
+ bool is_a (const target_type& tt) const {return tk.is_a (tt);}
};
inline bool