[Boost-bugs] [ boost-Support Requests-1707948 ] Assertion failed in token_iterator.hpp

Support Requests item #1707948, was opened at 2007-04-26 03:08 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=207586&aid=1707948&group_id=7586 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Assertion failed in token_iterator.hpp Initial Comment: Using BOOST.1.33.1 with Borland C++. I've suddenly got a Message Box saying: Assertion failed: valid_, file ...boost/token_iterator.hpp, line 52 Line 52 in token_iterator.hpp is: assert(valid_); in void increment(){}. Could anybody give me a clue as to what might be going on and why it has suddenly started happening, please? With thanks in anticipation, Paul Collins (paul@screen.subtitling.com) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=207586&aid=1707948&group_id=7586 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Boost-bugs mailing list Boost-bugs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/boost-bugs

SourceForge.net wrote:
Using BOOST.1.33.1 with Borland C++. I've suddenly got a Message Box saying: Assertion failed: valid_, file ...boost/token_iterator.hpp, line 52
Line 52 in token_iterator.hpp is: assert(valid_); in void increment(){}.
Could anybody give me a clue as to what might be going on and why it has suddenly started happening, please?
Probably, you're trying to increment an iterator pointing to end() . Even if you check (pos != end) and everithing seems ok, it may be caused by passing a string like "###/#_#" to tokenizer<>. This produces no tokens, that's why your tokenizer.begin() == tokenizer.end(). If you want to tokenize such string and get <###> and <#_#> tokens, try following: string s("###/#_#"); char_separator<char> sep("/"); tokenizer< char_separator<char> > tok(s, sep); -- View this message in context: http://www.nabble.com/-Boost-bugs----boost-Support-Requests-1707948---Assert... Sent from the Boost - Dev mailing list archive at Nabble.com.
participants (2)
-
SourceForge.net
-
tatsu