Skip to content

Commit

Permalink
Add missing hash specializations for new enums added by canPass PR.
Browse files Browse the repository at this point in the history
Signed-off-by: Danila Fedorin <[email protected]>
  • Loading branch information
DanilaFe committed Oct 27, 2023
1 parent 72e1ae6 commit 346c115
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions frontend/include/chpl/resolution/resolution-types.h
Original file line number Diff line number Diff line change
Expand Up @@ -2080,6 +2080,19 @@ template<> struct hash<chpl::resolution::TypedFnSignature::WhereClauseResult>
}
};

template<> struct hash<chpl::resolution::CandidateFailureReason>
{
size_t operator()(const chpl::resolution::CandidateFailureReason& key) const {
return (size_t) key;
}
};

template<> struct hash<chpl::resolution::PassingFailureReason>
{
size_t operator()(const chpl::resolution::PassingFailureReason& key) const {
return (size_t) key;
}
};


} // end namespace std
Expand Down

0 comments on commit 346c115

Please sign in to comment.