vector (vector<>::_M_requires_reallocation): Just use this->capacity().
authorStefano Soffia <soffia@cs.unipr.it>
Mon, 12 May 2008 10:15:34 +0000 (12:15 +0200)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 12 May 2008 10:15:34 +0000 (10:15 +0000)
commit2028b66d86a328f2e15bf5bd2077b5cdb9bb8f93
treed784f449199154c82868eac9a3e3a361aa8952d4
parentb3aaa29ac40cf49b62efc96db98500cce8491330
vector (vector<>::_M_requires_reallocation): Just use this->capacity().

2008-05-12  Stefano Soffia  <soffia@cs.unipr.it>
    Paolo Carlini  <paolo.carlini@oracle.com>

* include/debug/vector (vector<>::_M_requires_reallocation): Just
use this->capacity().
(vector<>::capacity): Move non-pedantic / pedantic logic here.
* testsuite/23_containers/vector/
debug_mode_requires_reallocation-2.cc: New.

* testsuite/23_containers/vector/debug_mode_requires_reallocation.cc:
Rename to debug_mode_requires_reallocation-1.cc

Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>
From-SVN: r135208
libstdc++-v3/ChangeLog
libstdc++-v3/include/debug/vector
libstdc++-v3/testsuite/23_containers/vector/debug_mode_requires_reallocation-1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/vector/debug_mode_requires_reallocation-2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/vector/debug_mode_requires_reallocation.cc [deleted file]