Deprecate nested types in std::hash
authorJonathan Wakely <jwakely@redhat.com>
Wed, 20 Sep 2017 16:34:42 +0000 (17:34 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 20 Sep 2017 16:34:42 +0000 (17:34 +0100)
commitf78958c9b421bba1f24d04ec47cfa3d999214b32
treefcf362ffffff7cacb075e905ab7d59f11241fb65
parent7ba0b15a7e552a6458a54b460752fd19f423170d
Deprecate nested types in std::hash

* include/bits/c++config (_GLIBCXX17_DEPRECATED): Define.
* include/bits/functional_hash.h (__hash_base::result_type)
(__hash_base::argument_type): Add _GLIBCXX17_DEPRECATED.
* include/std/optional (hash<optional<T>>::result_type)
(hash<optional<T>>::argument_type): Add deprecated attribute.
(__is_fast_hash<hash<optional<T>>>): Add partial specialization.
* include/std/variant (hash<variant<Types...>>::result_type)
(hash<variant<Types...>>::argument_type): Add deprecated attribute.
(__is_fast_hash<hash<variant<Types...>>>): Add partial specialization.

From-SVN: r253017
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/c++config
libstdc++-v3/include/bits/functional_hash.h
libstdc++-v3/include/std/optional
libstdc++-v3/include/std/variant