{ Note: this article is cross-posted to comp.lang.c++,
microsoft.public.vc.stl, gnu.g++.help and comp.lang.c++.moderated. -mod }
Sébastien Guérif wrote in message
<[EMAIL PROTECTED]>...
>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.
{
for( size_t i(0); i < 5; i++ ){
std::cout<<" i = "<< i << std::endl;
}
std::cout<<std::endl;
for( size_t i(0); i < 5; ++i ){
std::cout<<" i = "<< i << std::endl;
}
}
// i = 0
// i = 1
// i = 2
// i = 3
// i = 4
// i = 0
// i = 1
// i = 2
// i = 3
// i = 4
--
Bob R
POVrookie
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
_______________________________________________
help-gplusplus mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gplusplus