
I'm using boost v1_31_0 and gcc v3.3.2 In experimenting with boost::tokenizer to meet a requirement that I have, I've tried hooking it to a reverse iterator. This act produced a run-time error. This is the code: const string test = "One:Two:Three:Four"; typedef char_separator<char> Sep; typedef tokenizer<Sep,string::const_reverse_iterator> Tok; Sep sep(":"); Tok t(test,sep); for (Tok::iterator iter=t.end();iter!=t.begin();++iter) cout << *iter << endl; Executing this produces continous output of "garbage". Switching the ".end()" and ".begin()" references in the for loop doesn't fix this problem. Switching from "const_reverse_iterator" to "const_iterator" produces the following output: One Two Three Four Is there a way to use a reverse iterator with boost:tokenizer?