Skip to content
Snippets Groups Projects
Forked from Core Modules / dune-common
5265 commits behind the upstream repository.
user avatar
Christian Engwer authored
Make bigunsignedint hashable using Dune::hash

This patch adds the required hooks to enable hashing of bigunsignedint
and makes sure the hasher can be invoked in bigunsignedinttest.

Making bigunsignedint hashable also makes it possible to use hash-based
containers for EntityIDs with YaspGrid and SGrid, as those grids implement
the EntityID as a plain bigunsignedint.

The patch also adds a little test to bigunsignedinttest, trying to hash
a bigunsignedint with Dune::hash as well as any of the detected backends
(std::hash and std::tr1::hash).

Kudos to Steffen Müthing, see FS#1192

[[Imported from SVN: r7066]]
10e69621
History