-
- Downloads
forward_list.h (forward_list::_M_get_Node_allocator): Remove unnecessary uses...
forward_list.h (forward_list::_M_get_Node_allocator): Remove unnecessary uses of operator& and static_cast. * include/bits/forward_list.h (forward_list::_M_get_Node_allocator): Remove unnecessary uses of operator& and static_cast. * include/bits/forward_list.tcc (forward_list::operator=(const forward_list&)): Use __addressof instead of operator&. (forward_list::remove(const _Tp&), forward_list::remove(_Pred)): Remove invalid static_casts. * include/debug/forward_list: Use __addressof instead of operator&. * testsuite/23_containers/forward_list/modifiers/addressof.cc: New. From-SVN: r224553
Showing
- libstdc++-v3/ChangeLog 10 additions, 0 deletionslibstdc++-v3/ChangeLog
- libstdc++-v3/include/bits/forward_list.h 2 additions, 2 deletionslibstdc++-v3/include/bits/forward_list.h
- libstdc++-v3/include/bits/forward_list.tcc 6 additions, 6 deletionslibstdc++-v3/include/bits/forward_list.tcc
- libstdc++-v3/include/debug/forward_list 8 additions, 7 deletionslibstdc++-v3/include/debug/forward_list
- libstdc++-v3/testsuite/23_containers/forward_list/modifiers/addressof.cc 32 additions, 0 deletions...stsuite/23_containers/forward_list/modifiers/addressof.cc
Loading
Please register or sign in to comment