This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Urgent 'String size limitation'
- From: Carlo Wood <carlo at alinoe dot com>
- To: masaoud at pspl dot co dot in
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Mon, 4 Feb 2002 19:19:32 +0100
- Subject: Re: Urgent 'String size limitation'
- References: <20020204.17333400@hongkong.intranet.pspl.co.in>
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>