diff options
| author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-10 15:02:34 +0000 |
|---|---|---|
| committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-10 15:02:34 +0000 |
| commit | 1248692d13d5a841493bb05be520d34fd82e6f07 (patch) | |
| tree | 6b2565c4565bb94b11c441523d4c7c9c2b7b7a26 /libstdc++-v3/include/debug/vector | |
| parent | 54f3117f7e32436ba2e497600ba55693a8a6f226 (diff) | |
| download | ppe42-gcc-1248692d13d5a841493bb05be520d34fd82e6f07.tar.gz ppe42-gcc-1248692d13d5a841493bb05be520d34fd82e6f07.zip | |
2008-05-10 Roberto Bagnara <bagnara@cs.unipr.it>
Paolo Carlini <paolo.carlini@oracle.com>
* include/debug/vector (vector<>::_M_requires_reallocation): Fix macro.
* testsuite/23_containers/vector/debug_mode_requires_reallocation.cc:
New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135151 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/debug/vector')
| -rw-r--r-- | libstdc++-v3/include/debug/vector | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/debug/vector b/libstdc++-v3/include/debug/vector index 672cb81ad9d..a588ca8f104 100644 --- a/libstdc++-v3/include/debug/vector +++ b/libstdc++-v3/include/debug/vector @@ -1,6 +1,6 @@ // Debugging vector implementation -*- C++ -*- -// Copyright (C) 2003, 2004, 2005, 2006, 2007 +// Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 // Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free @@ -443,7 +443,7 @@ namespace __debug bool _M_requires_reallocation(size_type __elements) { -#ifdef _GLIBCXX_DEBUG_PEDANTIC +#ifndef _GLIBCXX_DEBUG_PEDANTIC return __elements > this->capacity(); #else return __elements > _M_guaranteed_capacity; |

