Skip to content

Compatibility with std::hash #4

@JVApen

Description

@JVApen

boost::hash_combine is very useful, however, it does require to implement a hash function twice in order to be used. std::hash and boost::hash_value.

On stackoverflow, several 'workarounds' exist for making this easier, all assume you are able to encapsulate the includes to hash.hpp in your own wrapping header.

Would it be possible to allow hash_combine ... to fall back to std::hash when no hash_value is available?

https://stackoverflow.com/a/51915825/2466431

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions