PR libstdc++/88802 define std::hash<nullptr_t> for C++17
authorJonathan Wakely <jwakely@redhat.com>
Fri, 11 Jan 2019 14:54:49 +0000 (14:54 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 11 Jan 2019 14:54:49 +0000 (14:54 +0000)
commit17a73b3c47f58155350af2e1ca359e915ffedcae
tree68fa79c1bceee9879bc6d5e711f02b905564bb2f
parentd58cb9659f8edd691f2c3f5595b6ac258eec58b9
PR libstdc++/88802 define std::hash<nullptr_t> for C++17

PR libstdc++/88802
* include/bits/functional_hash.h (hash<nullptr_t>): Define
specialization for C++17 (P0513R0, LWG 2817).
* testsuite/20_util/hash/nullptr.cc: New test.

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