The code is something like so
void buildIt(Object& o, Tokenizer::const_iterator begin, Tokenizer::const_iterator end){
if(begin == end) return;
else{
string parent = *begin;
bool hasChild = (begin+1) != end; //error: class booost::token_iterator<...> has no member named 'advance'
}
}
How can I check to see if the next iterator is valid without moving it?
You can always just copy the iterator and increment the copy. Or use
boost::next.