diff options
author | François Dumont <fdumont@gcc.gnu.org> | 2013-08-08 09:47:29 +0000 |
---|---|---|
committer | François Dumont <fdumont@gcc.gnu.org> | 2013-08-08 09:47:29 +0000 |
commit | b09bcf83e8fe1b941aa42457b6063a2a174d7389 (patch) | |
tree | 4d79115b2eb9eb7422e5503ac6c62f9f8bad66a3 /libstdc++-v3/src | |
parent | f276d31d2484ae55d53099f44dea1b212006f84e (diff) | |
download | gcc-b09bcf83e8fe1b941aa42457b6063a2a174d7389.zip gcc-b09bcf83e8fe1b941aa42457b6063a2a174d7389.tar.gz gcc-b09bcf83e8fe1b941aa42457b6063a2a174d7389.tar.bz2 |
hashtable_policy.h (_Hashtable_alloc): New.
2013-08-08 François Dumont <fdumont@gcc.gnu.org>
* include/bits/hashtable_policy.h (_Hashtable_alloc): New.
(_ReuseOrAllocNode, _AllocNode): Adapt to use latter rather than
_Hashtable.
(_Before_begin<>): Remove.
* include/bits/hashtable.h (_Hashtable): Inherit from
_Hashtable_alloc and adapt. Restore _M_before_begin field.
* src/c++11/hashtable_c++0x.cc: Add ext/alloc_traits.h include.
* python/libstdcxx/v6/printers.py (StdHashtableIterator): Adapt
access to hashtable before begin.
* testsuite/23_containers/unordered_set/
not_default_constructible_hash_neg.cc: Adapt dg-error line number.
* testsuite/23_containers/unordered_set/instantiation_neg.cc:
Likewise.
From-SVN: r201592
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r-- | libstdc++-v3/src/c++11/hashtable_c++0x.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libstdc++-v3/src/c++11/hashtable_c++0x.cc b/libstdc++-v3/src/c++11/hashtable_c++0x.cc index bddb7ff..e7e6b16 100644 --- a/libstdc++-v3/src/c++11/hashtable_c++0x.cc +++ b/libstdc++-v3/src/c++11/hashtable_c++0x.cc @@ -29,6 +29,7 @@ #include <initializer_list> #include <tuple> #include <ext/aligned_buffer.h> +#include <ext/alloc_traits.h> #include <bits/hashtable_policy.h> namespace std _GLIBCXX_VISIBILITY(default) |