Skip to content

Commit 99e99e7

Browse files
committed
DPL: add comparison operator to InputSpec
Needed by the dangling outputs feature.
1 parent 8970f17 commit 99e99e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Framework/Core/include/Framework/InputSpec.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ struct InputSpec {
3030
header::DataHeader::SubSpecificationType subSpec = 0;
3131
enum Lifetime lifetime = Lifetime::Timeframe;
3232

33+
bool operator==(InputSpec const& that) const
34+
{
35+
return origin == that.origin && description == that.description && subSpec == that.subSpec &&
36+
lifetime == that.lifetime;
37+
};
38+
3339
friend std::ostream& operator<<(std::ostream& stream, InputSpec const& arg);
3440
};
3541

0 commit comments

Comments
 (0)