The assertion in the following testcase should /not/ fail, but does:
#define _GLIBCXX_DEBUG #define _GLIBCXX_DEBUG_PEDANTIC
#include <vector> #include <cassert>
int main() { std::vector<int> v; v.resize(10); assert(v.size() <= v.capacity()); }
The assertion in the following testcase should /not/ fail, but does:
#define _GLIBCXX_DEBUG DEBUG_PEDANTIC
#define _GLIBCXX_
#include <vector>
#include <cassert>
int main() :vector< int> v;
{
std:
v.resize(10);
assert(v.size() <= v.capacity());
}