Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2006-03-21 05:21:59


> 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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net