This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: basic_string<>::max_size


Ryszard Kabatek wrote:

> The max_size member function returns a wrong value:
>
> (npos / sizeof(_CharT)) - 2
>
> the correct value is:
>
> (npos / sizeof(_CharT)) - 2 - sizeof(_Rep).

Please send:
1) ChangeLog entry
2) patch
3) testcase submission for 21_strings that illuminates this problem

Thanks,
Benjamin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]