[Bug libstdc++/29134] Has there been a serious attempt to define the max_size() member functions?
chris at bubblescope dot net
gcc-bugzilla@gcc.gnu.org
Wed Sep 20 09:50:00 GMT 2006
------- Comment #3 from chris at bubblescope dot net 2006-09-20 09:50 -------
Actually, I think deque could do with a better max_size.
Some tests:
vector<int> v;
v.resize(v.max_size());
Throws bad_alloc.
deque<int> v;
v.resize(v.max_size());
Bus errors.
This is on i686-apple-darwin8, 4.0.1 Apple's build, so might not be the same
behaviour as mainline. Still seems like it shouldn't bus error however?
--
chris at bubblescope dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |chris at bubblescope dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29134
More information about the Gcc-bugs
mailing list