diff options
Diffstat (limited to 'build2/target-key')
-rw-r--r-- | build2/target-key | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build2/target-key b/build2/target-key index df589d7..ef59d63 100644 --- a/build2/target-key +++ b/build2/target-key @@ -28,6 +28,10 @@ namespace build2 const string* const name; const string* const& ext; + template <typename T> + bool is_a () const {return type->is_a<T> ();} + bool is_a (const target_type& tt) const {return type->is_a (tt);} + // The above references have to track the original objects so we cannot // have assignment. // |