-
May 22nd, 2011, 08:28 AM
#1
[STL] list iterator not incrementable
Hey everybody,
i hope my question wasnt mentionned in FAQ:
Ok, i'm working on a very simple project but when it comes to implementing the methode advance to increment the iterator current, it doesnt work and says list iterator not incrementable, heres the code:
void liste::avancer()
{
courant++;
}
and heres the constructor one:
liste::liste(void)
{
courant = maliste.begin();
}
when i call the 'avancer' method from the main i have an error: list iterator not incrementable
Thanks in advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|