This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
basic_string<>::max_size
- To: libstdc++@sourceware.cygnus.com
- Subject: basic_string<>::max_size
- From: Ryszard Kabatek <rysio@rumcajs.chemie.uni-halle.de>
- Date: Fri, 21 May 1999 16:39:54 +0200 (CEST)
- Reply-To: Ryszard Kabatek <kabatek@chemie.uni-halle.de>
The max_size member function returns a wrong value:
(npos / sizeof(_CharT)) - 2
the correct value is:
(npos / sizeof(_CharT)) - 2 - sizeof(_Rep).
Ryszard Kabatek
Martin-Luther University Halle-Wittenberg, Department of Physical Chemistry
Geusaer Str. 88, 06217 Merseburg, Germany
Tel. +49 3461 46 2487 (2466) Fax. +49 3461 46 2129