
21 Mar
2006
21 Mar
'06
10:21 a.m.
I know that the iterator for std::string is a class and not a char pointer. I am at a loss as how to proceed.
That would likely be the cause of the problem: you're trying to use the same code with two different incompatible iterator types. What you could do is use: mystring.c_str(); in place of mystring.begin() mystring.c_str()+mystring.size(); in place of mystring.end() So that you're back to using const char* as an iterator for std::string again. John.