re PR libstdc++/60970 (Support std::hash with enum types (LWG 2148))
authorVille Voutilainen <ville.voutilainen@gmail.com>
Wed, 29 Jul 2015 12:41:23 +0000 (15:41 +0300)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 29 Jul 2015 12:41:23 +0000 (13:41 +0100)
commit1fa9ba224e9c93221cda08900070b7e66b5541ee
tree75859a7e610da08b9b2b4585acc4bfd68524f85d
parentc2ec330c9af93429e85803ef2e7f2a92a23d3f64
re PR libstdc++/60970 (Support std::hash with enum types (LWG 2148))

2015-07-29  Ville Voutilainen  <ville.voutilainen@gmail.com>

PR libstdc++/60970
* include/bits/functional_hash.h (__hash_enum): New.
(hash): Derive from __hash_enum.
* testsuite/20_util/hash/60970.cc: New.

From-SVN: r226347
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/functional_hash.h
libstdc++-v3/testsuite/20_util/hash/60970.cc [new file with mode: 0644]