Skip to content

hash combination: Fix struct hash in sm::vec #98

@sebsjames

Description

@sebsjames
for (std::size_t n = 1u; n < N; ++n) { h ^= std::hash<S>{}(v[n]); }

should probably read

for (std::size_t n = 1u; n < N; ++n) {
    h = h ^ (std::hash<S>{}(v[n]) << 1);
}

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