Skip to content

Commit

Permalink
DPL: add comparison operator to InputSpec
Browse files Browse the repository at this point in the history
Needed by the dangling outputs feature.
  • Loading branch information
ktf committed Oct 15, 2018
1 parent 8970f17 commit 99e99e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Framework/Core/include/Framework/InputSpec.h
Expand Up @@ -30,6 +30,12 @@ struct InputSpec {
header::DataHeader::SubSpecificationType subSpec = 0;
enum Lifetime lifetime = Lifetime::Timeframe;

bool operator==(InputSpec const& that) const
{
return origin == that.origin && description == that.description && subSpec == that.subSpec &&
lifetime == that.lifetime;
};

friend std::ostream& operator<<(std::ostream& stream, InputSpec const& arg);
};

Expand Down

0 comments on commit 99e99e7

Please sign in to comment.