aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/target.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/target.hxx')
-rw-r--r--libbuild2/target.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/libbuild2/target.hxx b/libbuild2/target.hxx
index 4ce871b..d584023 100644
--- a/libbuild2/target.hxx
+++ b/libbuild2/target.hxx
@@ -137,6 +137,15 @@ namespace build2
real // Real dependency declaration.
};
+ inline bool
+ operator< (target_decl l, target_decl r)
+ {
+ return static_cast<uint8_t> (l) < static_cast<uint8_t> (r);
+ }
+
+ inline bool
+ operator>= (target_decl l, target_decl r) { return !(l < r); }
+
class LIBBUILD2_SYMEXPORT target
{
public: