Skip to content

Shouldn't hash_combine use different constants for 32/64 bit size_t? #7

@IvanPizhenko

Description

@IvanPizhenko

Current code seems to be taken from Boost, but it is likely 32-bit oriented. Shouldn't the different constant be used for 64-bit size_t?

seed ^= std::hash<T>{}(val) + 0x9e3779b9 + (seed<<6) + (seed>>2);

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