Adjust tr1::_Hashtable to work with std::allocator in C++20
authorJonathan Wakely <jwakely@redhat.com>
Fri, 4 Oct 2019 12:17:01 +0000 (13:17 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 4 Oct 2019 12:17:01 +0000 (13:17 +0100)
commit44e4da6505935116a2468c56f425c33e70caa10c
tree2e36b00412d371cc56cb2826c1bbd53d47ceb09c
parent8384956a1b27161775bc0e272614c42e523ee8f6
Adjust tr1::_Hashtable to work with std::allocator in C++20

In C++20 std::allocator will no longer define construct and destroy
member functions, so using them needs to go via allocator_traits.

* include/tr1/hashtable.h (tr1::_Hashtable::_M_allocate_node): Use
__gnu_cxx::__alloc_traits for allocator construct function.
(tr1::_Hashtable::_M_deallocate_node): Likewise for destroy function.

From-SVN: r276575
libstdc++-v3/ChangeLog
libstdc++-v3/include/tr1/hashtable.h