alloc_traits.h (__alloctr_rebind): Remove.
authorJonathan Wakely <jwakely@redhat.com>
Wed, 1 Jul 2015 12:24:09 +0000 (13:24 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 1 Jul 2015 12:24:09 +0000 (13:24 +0100)
commit7946683835932333aafd231f140b1e8812137bfb
treec9a4fa80f7b0e895d8e2fdc59cfd42a9bddc9bbc
parent4f44c5556fc384b57ea0c8c6908701bb5f1c4ed4
alloc_traits.h (__alloctr_rebind): Remove.

* include/bits/alloc_traits.h (__alloctr_rebind): Remove.
(__allocator_traits_base): New base class.
(__alloc_rebind): Reimplement in terms of detection idiom.
(allocator_traits): Derive from __allocator_traits_base. Reimplement
nested types in terms of detection idiom. Simplify SFINAE constraints
on overloaded static member functions.
* include/bits/hashtable.h (_Hashtable): Use __alloc_rebind instead
of __alloctr_rebind.
* testsuite/20_util/scoped_allocator/propagation.cc: Define rebind.
* testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
dg-error line number.

From-SVN: r225244
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/alloc_traits.h
libstdc++-v3/include/bits/hashtable.h
libstdc++-v3/testsuite/20_util/scoped_allocator/propagation.cc
libstdc++-v3/testsuite/23_containers/unordered_set/instantiation_neg.cc