]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR libstdc++/82262 fix std::hash<std::optional<const T>>
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Sep 2017 13:24:45 +0000 (13:24 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Sep 2017 13:24:45 +0000 (13:24 +0000)
commitb337f382092babd624285e0404e77160e9ecc31c
treead4f0a07abad59d603a2d3a532ece3c58c21f801
parentc8459b286fcedeb856ee2e59891ae1ae1af5bb3c
PR libstdc++/82262 fix std::hash<std::optional<const T>>

PR libstdc++/82262
* include/std/optional (__optional_hash_call_base): Add template
parameter for remove_const_t<_Tp> and use it consistently.
* testsuite/20_util/optional/hash.cc: Test optional<const T>.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253010 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/optional
libstdc++-v3/testsuite/20_util/optional/hash.cc