Hello..
Whenever I compile this code, I get boost compile error, though I have no idea what could be wrong.
Thanks a lot for helpCode:#include <string> #include <iostream> #include <boost/tokenizer.hpp> using namespace std; int parse(string data) { typedef boost::tokenizer <boost::escaped_list_separator<char> > tokenizer; tokenizer tokens(data); for (tokenizer::iterator it = tokens.begin(); it != tokens.end(); it++) { cout << *it << endl; cout << *(it - 1) << endl; //here i want to print the previous iterator (if it exists) } return 0; }