Urgent 'String size limitation'

Carlo Wood carlo@alinoe.com
Mon Feb 4 10:19:00 GMT 2002


On Mon, Feb 04, 2002 at 05:33:34PM +0000, masaoud@pspl.co.in wrote:
>         finalstr[ i ] = '1';

A std::string doesn't grow when using operator[],
you are accessing memory behond the allocation
of the string.

-- 
Carlo Wood <carlo@alinoe.com>



More information about the Libstdc++ mailing list