]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR libstdc++/88802 define std::hash<nullptr_t> for C++17
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Jan 2019 14:54:49 +0000 (14:54 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Jan 2019 14:54:49 +0000 (14:54 +0000)
commit1d628fd430fa433ccfc74c347db474c0f0ef5ca1
tree68fa79c1bceee9879bc6d5e711f02b905564bb2f
parentcda73d4ae2cfe28d915b928ea111d7d4b0a8c9ae
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@267845 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/functional_hash.h
libstdc++-v3/testsuite/20_util/hash/nullptr.cc [new file with mode: 0644]