This is the mail archive of the libstdc++@gcc.gnu.org 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]
Other format: [Raw text]

Re: Urgent 'String size limitation'


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>


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