Skip to content

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

Description

@joonazan

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions