Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] Add hash support for bn::type_id_t #47

Closed
copyrat90 opened this issue Apr 29, 2023 · 1 comment
Closed

[Request] Add hash support for bn::type_id_t #47

copyrat90 opened this issue Apr 29, 2023 · 1 comment

Comments

@copyrat90
Copy link
Contributor

hash for the bn::type_id_t is missing for some reason?

namespace bn {
    template <>
    struct hash<type_id_t> {
        [[nodiscard]] constexpr unsigned operator()(type_id_t value) const {
            return hash<unsigned>()(unsigned(value.internal_id()));
        }
    };
} // namespace bn
@GValiente
Copy link
Owner

d0c2ce6

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants