Skip to content

Implementing std::hash specialization for MCCompLabel#1645

Merged
sawenzel merged 1 commit into
AliceO2Group:devfrom
matthiasrichter:dev
Jan 30, 2019
Merged

Implementing std::hash specialization for MCCompLabel#1645
sawenzel merged 1 commit into
AliceO2Group:devfrom
matthiasrichter:dev

Conversation

@matthiasrichter
Copy link
Copy Markdown
Collaborator

The internal encoded value can simply be used as a hash, implementing std::hash
specialization for MCCompLabels allows to use containers like unordered_map.

Some minor cleanup in addition, moving the static_assert checks directly to the header.

The internal encoded value can simply be used as a hash, implementing std::hash
specialization for MCCompLabels allows to use containers like unordered_map.
@sawenzel sawenzel merged commit b8470f8 into AliceO2Group:dev Jan 30, 2019
matthiasrichter added a commit to matthiasrichter/AliceO2 that referenced this pull request Feb 25, 2019
Restore PR AliceO2Group#1645 after resolving compilation issue. Previous implementation
in commit b8470f8 has been reverted in
commit 9497df2.

Compilation error on macos was simply caused by missing header <unordered_map>.
sawenzel pushed a commit that referenced this pull request Mar 6, 2019
Restore PR #1645 after resolving compilation issue. Previous implementation
in commit b8470f8 has been reverted in
commit 9497df2.

Compilation error on macos was simply caused by missing header <unordered_map>.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants