2006-10-28 Paolo Carlini <pcarlini@suse.de>
* include/tr1/array (array<>::_M_at): New. (array<>::at): Fix off-by-one bug, use the above. * testsuite/tr1/6_containers/array/element_access/ at_out_of_range.cc: Adjust. * include/tr1/array (class array<>): Remove non-conforming default for the second parameter. * include/ext/array_allocator.h: Adjust. * include/tr1/array (array<>::front, array<>::back): Do not return a reference to memory not belonging to the array when _Nm == 0. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118114 138bc75d-0d04-0410-961f-82ee72b054a4
Showing
- libstdc++-v3/ChangeLog 14 additions, 0 deletionslibstdc++-v3/ChangeLog
- libstdc++-v3/include/ext/array_allocator.h 1 addition, 1 deletionlibstdc++-v3/include/ext/array_allocator.h
- libstdc++-v3/include/tr1/array 50 additions, 24 deletionslibstdc++-v3/include/tr1/array
- libstdc++-v3/testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc 5 additions, 3 deletions.../tr1/6_containers/array/element_access/at_out_of_range.cc
Loading
Please register or sign in to comment