2009-11-13 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/forward_list.h (forward_list<>::erase_after): Change signature per N2988, return void; simplify. (_Fwd_list_base<>::_M_erase_after): Likewise return void. (forward_list<>::~forward_list): Do not call _M_erase_after unnecessarily, the base class destructor already does it. (forward_list<>::splice_after(const_iterator position, forward_list&&, const_iterator i): Check position != i and position != ++i. * include/bits/forward_list.tcc (_Fwd_list_base<>:: _M_erase_after(typename _Node_base::_Pointer): Simplify. (_Fwd_list_base<>::_M_erase_after(typename _Node_base::_Pointer, typename _Node_base::_Pointer): Fix (remove the correct range of element) and simplify (update __pos->_M_next at the end). * testsuite/23_containers/forward_list/modifiers/3.cc: Adjust and extend. * testsuite/23_containers/forward_list/ext_pointer/ modifiers/3.cc: Likewise. * testsuite/23_containers/forward_list/requirements/dr438/ assign_neg.cc: Tweak dg-error line numbers. * testsuite/23_containers/forward_list/requirements/dr438/ insert_neg.cc: Likewise. * testsuite/23_containers/forward_list/requirements/dr438/ constructor_1_neg.cc: Likewise. * testsuite/23_containers/forward_list/requirements/dr438/ constructor_2_neg.cc: Likewise. From-SVN: r154174
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| 17_intro | Loading commit data... | |
| 18_support | Loading commit data... | |
| 19_diagnostics | Loading commit data... | |
| 20_util | Loading commit data... | |
| 21_strings | Loading commit data... | |
| 22_locale | Loading commit data... | |
| 23_containers | Loading commit data... | |
| 24_iterators | Loading commit data... | |
| 25_algorithms | Loading commit data... | |
| 26_numerics | Loading commit data... | |
| 27_io | Loading commit data... | |
| 28_regex | Loading commit data... | |
| 29_atomics | Loading commit data... | |
| 30_threads | Loading commit data... | |
| abi | Loading commit data... | |
| backward | Loading commit data... | |
| config | Loading commit data... | |
| data | Loading commit data... | |
| decimal | Loading commit data... | |
| ext | Loading commit data... | |
| lib | Loading commit data... | |
| libstdc++-abi | Loading commit data... | |
| libstdc++-dg | Loading commit data... | |
| performance | Loading commit data... | |
| tr1 | Loading commit data... | |
| util | Loading commit data... | |
| Makefile.am | Loading commit data... | |
| Makefile.in | Loading commit data... |