diff options
author | François Dumont <fdumont@gcc.gnu.org> | 2013-08-06 08:38:58 +0000 |
---|---|---|
committer | François Dumont <fdumont@gcc.gnu.org> | 2013-08-06 08:38:58 +0000 |
commit | a3d4b3d7dba285bd194463dee6ab6d1e522f53bc (patch) | |
tree | dd82deb1222707956547a3a5df78ae88ac6e5f4e /libstdc++-v3/python | |
parent | 2cc6320da1118c535569815d208a07323a566e56 (diff) | |
download | gcc-a3d4b3d7dba285bd194463dee6ab6d1e522f53bc.zip gcc-a3d4b3d7dba285bd194463dee6ab6d1e522f53bc.tar.gz gcc-a3d4b3d7dba285bd194463dee6ab6d1e522f53bc.tar.bz2 |
hashtable_policy.h (_Hashtable_alloc): New.
2013-08-06 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.
* 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: r201522
Diffstat (limited to 'libstdc++-v3/python')
-rw-r--r-- | libstdc++-v3/python/libstdcxx/v6/printers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py index a3a8b1e..de50d1e 100644 --- a/libstdc++-v3/python/libstdcxx/v6/printers.py +++ b/libstdc++-v3/python/libstdcxx/v6/printers.py @@ -652,7 +652,7 @@ class Tr1HashtableIterator: class StdHashtableIterator: def __init__(self, hash): - self.node = hash['_M_bbegin']['_M_node']['_M_nxt'] + self.node = hash['_M_before_begin']['_M_nxt'] self.node_type = find_type(hash.type, '__node_type').pointer() def __iter__(self): |