PR libstdc++/82262 fix std::hash<std::optional<const T>>
authorJonathan Wakely <jwakely@redhat.com>
Wed, 20 Sep 2017 13:24:45 +0000 (14:24 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 20 Sep 2017 13:24:45 +0000 (14:24 +0100)
commitf6b05c44aad49d8c37f4b3deaac93565126340f9
treead4f0a07abad59d603a2d3a532ece3c58c21f801
parent3c16e99cf7731729290b96af4ec3b4fe6c68b63a
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>.

From-SVN: r253010
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/optional
libstdc++-v3/testsuite/20_util/optional/hash.cc