summaryrefslogtreecommitdiff
path: root/gcc/cfg.c
diff options
context:
space:
mode:
authorVille Voutilainen <ville.voutilainen@gmail.com>2017-01-21 17:38:23 +0200
committerVille Voutilainen <ville@gcc.gnu.org>2017-01-21 17:38:23 +0200
commit509912a611f9e86883cd1f3c1751e4a1b3cb7abf (patch)
treec4dd133b3f3bc23f7e1a1395c9e1fc10b1c2fde0 /gcc/cfg.c
parentc31d5fcecf100a3012fae0b99639022a992f28f0 (diff)
downloadgcc-509912a611f9e86883cd1f3c1751e4a1b3cb7abf.tar.gz
Make poisoned hashes SFINAE away the call operator of the hash.
* include/bits/functional_hash.h (__poison_hash::__enable_hash_call): New. * include/std/optional (__optional_hash_call_base): New. (hash<optional<_Tp>>): Derive from the new base, move the hash function into that base. * include/std/variant (__variant_hash_call_base_impl): New. (__variant_hash_call_base): Likewise. (hash<variant<_Types...>>): Derive from the new base, move the hash function into that base. * testsuite/20_util/optional/hash.cc: Add tests for is_callable. * testsuite/20_util/variant/hash.cc: Likewise. From-SVN: r244748
Diffstat (limited to 'gcc/cfg.c')
0 files changed, 0 insertions, 0 deletions