]> git.ipfire.org Git - thirdparty/gcc.git/commit
hashtable.h (_Hashtable<>::erase(const key_type&)): Use std::__addressof.
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 11 Aug 2010 23:59:35 +0000 (23:59 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 11 Aug 2010 23:59:35 +0000 (23:59 +0000)
commitafb767b41fbd9a513af007dcf8bfe93d4122fe6b
treea32f4d31130e39b531e1695206585d8fc6dd3a0d
parent53d8d5c17ddc2f3eb3d813cb17e31cbc726ccede
hashtable.h (_Hashtable<>::erase(const key_type&)): Use std::__addressof.

2010-08-11  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/hashtable.h (_Hashtable<>::erase(const key_type&)):
Use std::__addressof.

* include/bits/forward_list.tcc (forward_list<>::remove): Deal
correctly with &__tmp->_M_value == &__val.
* testsuite/23_containers/forward_list/operations/remove_freed.cc:
New.

From-SVN: r163178
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/forward_list.tcc
libstdc++-v3/include/bits/hashtable.h
libstdc++-v3/testsuite/23_containers/forward_list/operations/remove_freed.cc [new file with mode: 0644]