diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-06-25 09:00:12 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-06-25 09:00:12 +0200 |
commit | a17b6b40510b8ec5ca18dd5203e4b229aa6fee8a (patch) | |
tree | fccf8e19b16775cbcf714a19a386bdc86ef1ec05 /libbuild2/target.hxx | |
parent | 3875999b2642013dfddd6cb1fa7b3ee7ac14f9d7 (diff) |
Add more instrumentation for unassigned path race
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) { |