diff options
Diffstat (limited to 'libbuild2/target.hxx')
-rw-r--r-- | libbuild2/target.hxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libbuild2/target.hxx b/libbuild2/target.hxx index c2954f8..d4b287b 100644 --- a/libbuild2/target.hxx +++ b/libbuild2/target.hxx @@ -1013,6 +1013,18 @@ namespace build2 static_assert (std::is_trivially_destructible<prerequisite_member>::value, "prerequisite_member is not trivially destructible"); + inline bool + operator== (const prerequisite_member& x, const prerequisite_member& y) + { + return &x.prerequisite == &y.prerequisite && x.member == y.member; + } + + inline bool + operator!= (const prerequisite_member& x, const prerequisite_member& y) + { + return !(x == y); + } + inline ostream& operator<< (ostream& os, const prerequisite_member& pm) { |