[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 10:15:00 GMT 2006
------- Comment #5 from chris at bubblescope dot net 2006-09-20 10:15 -------
The reason I bought this up here, is because I thought (and I could be wrong,
sorry) that the overflow was being caused by the fact that we allow the
container size to get too big, and if we pull max_size() down to a proper
level, then the container should never have to deal with arithmetic overflow.
Of course as a QoI issue, we might want good behaviour even if someone tries to
resize a container larger than max_size.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29134
More information about the Gcc-bugs
mailing list