OSDN Git Service

2006-10-28 Paolo Carlini <pcarlini@suse.de>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 28 Oct 2006 22:02:44 +0000 (22:02 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 28 Oct 2006 22:02:44 +0000 (22:02 +0000)
commitcd23dcfc6ee0b985f8d9aaccba5380f4b460475f
tree3206ab3ee6fca21ddeddab4ec985b4751ca13866
parent65df050ec6ceec3134968a00ef7d142c695b1d11
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
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