help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hash_set core dump on memory free


From: Sébastien Guérif
Subject: Re: hash_set core dump on memory free
Date: 5 Nov 2006 09:51:21 -0500

Rakesh wrote:
Hi -

  What is wrong this implementation? I get a core dump at the free()
statement? Thanks

Rakesh


Hi Rakesh!

for (Iter1 = AddedPhrases.begin(); Iter1 != AddedPhrases.end();
Iter1++)

Just replace Iter1++ by ++Iter1 above.

Hope this helps!
Sebastien

--
Sebastien Guerif
http://www-lipn.univ-paris13.fr/~guerif

--
     [ See http://www.gotw.ca/resources/clcm.htm for info about ]
     [ comp.lang.c++.moderated.    First time posters: Do this! ]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]