]> git.ipfire.org Git - thirdparty/gcc.git/commit
Deprecate nested types in std::hash
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Sep 2017 16:34:42 +0000 (16:34 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Sep 2017 16:34:42 +0000 (16:34 +0000)
commitb644c5b6ced3facbc5efdadae4a9bdfb2841fffe
treefcf362ffffff7cacb075e905ab7d59f11241fb65
parentf89bc7fb6b6191bf742204a0957fef37012f9699
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253017 138bc75d-0d04-0410-961f-82ee72b054a4
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