boost::tokenizer and boost::tokenizer::iterator
8 Dec
2006
8 Dec
'06
11:55 p.m.
I'm having a problem with tokenizer::iterator crashing the program when I increment it. I'm using it in a similar scope: In class constructor: { tokenizer tokens(...); tokenizer::iterator tokenIterator; } In a member function: { tokens.assign(string("1234#4567#1##"), separator("#")); tokenIterator = tokens.begin(); // use token iterator } In another member function: { cout << "token: " << *tokenIterator << endl; ++tokenIterator; ^^^ crash occurs in this instruction } I've verified: - Everything happens in the same thread (it's a multithreaded app) - tokenIterator != tokens.end(); Can anybody offer some insight? Regards, Javier
6547
Age (days ago)
6547
Last active (days ago)
0 comments
1 participants
participants (1)
-
Javier Estrada