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

A<T> and A<U> get the same hash #2

Open
joonazan opened this issue Oct 4, 2022 · 0 comments
Open

A<T> and A<U> get the same hash #2

joonazan opened this issue Oct 4, 2022 · 0 comments

Comments

@joonazan
Copy link

joonazan commented Oct 4, 2022

I realized this while writing basically the same functionality, just compile time instead of runtime. If this is a problem, you'll have to include the typehash of T in A<T>'s hash.

BTW, your type_hash function would be a lot simpler if you hashed module_path!() and the name of the type. That should be enough to uniquely identify a type.

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

1 participant