diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2017-01-20 02:36:16 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2017-01-20 02:36:16 +0000 |
commit | a3a1620bb840d62dbde06ce0290e8e5cfcbbf18b (patch) | |
tree | a8129bd7cd698ffbc306fef0a1ba2f58053e5eab /gcc | |
parent | 198766b6488cf0b50b3cff97099fb1c0482a9f3a (diff) | |
download | gcc-a3a1620bb840d62dbde06ce0290e8e5cfcbbf18b.zip gcc-a3a1620bb840d62dbde06ce0290e8e5cfcbbf18b.tar.gz gcc-a3a1620bb840d62dbde06ce0290e8e5cfcbbf18b.tar.bz2 |
PR72792 PR72793 relax requirements on rebind members
PR libstdc++/72792
PR libstdc++/72793
* include/bits/alloc_traits.h (__allocator_traits_base::__rebind):
Replace with class template using void_t.
(__alloc_rebind): Define in terms of
__allocator_traits_base::__rebind.
(allocator_traits): Remove unconditional static_assert for
rebind_alloc.
* include/bits/ptr_traits.h (__replace_first_arg): Remove type member.
(pointer_traits::__rebind): Replace with class template using void_t.
(pointer_traits::rebind): Define in terms of __rebind.
(pointer_traits): Remove unconditional static_assert for rebind.
* testsuite/20_util/allocator_traits/members/rebind_alloc.cc: New test.
* testsuite/20_util/pointer_traits/rebind.cc: New test.
From-SVN: r244680
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions