[Bug libstdc++/29134] Has there been a serious attempt to define the max_size() member functions?
pcarlini at suse dot de
Wed Sep 20 10:09:00 GMT 2006
------- Comment #4 from pcarlini at suse dot de 2006-09-20 10:09 -------
(In reply to comment #3)
> Actually, I think deque could do with a better max_size.
It's not at all clear to me what we can possibly do in the general case of
discontiguous containers. Certainly, we don't want Segmentation faults or bus
errors, but that is a largely unrelated issue (I suggest filing a separate PR),
which, I bet, in general has to do mostly with proper arithmetic in each
individual container. As a matter of fact, the problem with deque is an
arithmetic overflow in _M_new_elements_at_front.
More information about the Gcc-bugs