This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r118115 - in /branches/gcc-4_1-branch/libstdc++...
- From: paolo at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Sat, 28 Oct 2006 22:03:18 -0000
- Subject: r118115 - in /branches/gcc-4_1-branch/libstdc++...
Author: paolo
Date: Sat Oct 28 22:03:17 2006
New Revision: 118115
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118115
Log:
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.
Modified:
branches/gcc-4_1-branch/libstdc++-v3/ChangeLog
branches/gcc-4_1-branch/libstdc++-v3/include/ext/array_allocator.h
branches/gcc-4_1-branch/libstdc++-v3/include/tr1/array
branches/gcc-4_1-branch/libstdc++-v3/testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc