aboutsummaryrefslogtreecommitdiff
path: root/build/target-type
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-29 12:20:53 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-29 12:20:53 +0200
commit729b56300c441a0d63c7d2013eb5a881211d352b (patch)
treed363c5f282b910e1f014161e24c6dfc6a5fcba40 /build/target-type
parent1cf1603cae3064aff734f52d23c06098e81a8111 (diff)
Initial support for target type/pattern-specific variables
Diffstat (limited to 'build/target-type')
-rw-r--r--build/target-type6
1 files changed, 6 insertions, 0 deletions
diff --git a/build/target-type b/build/target-type
index d5e7971..154714c 100644
--- a/build/target-type
+++ b/build/target-type
@@ -42,6 +42,12 @@ namespace build
is_a () const {return is_a (typeid (T));}
};
+ inline bool
+ operator< (const target_type& x, const target_type& y)
+ {
+ return x.id < y.id;
+ }
+
inline std::ostream&
operator<< (std::ostream& os, const target_type& tt)
{