]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc
array (array<>::_M_at): New.
authorPaolo Carlini <pcarlini@suse.de>
Sat, 28 Oct 2006 22:02:44 +0000 (22:02 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 28 Oct 2006 22:02:44 +0000 (22:02 +0000)
commite7457c3eacf65a90b11d084434c20cd58ebbdb27
tree3206ab3ee6fca21ddeddab4ec985b4751ca13866
parentf1827a8c6996a8fc972db78323775b19f800a82d
array (array<>::_M_at): New.

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.

From-SVN: r118114
libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/array_allocator.h
libstdc++-v3/include/tr1/array
libstdc++-v3/testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc