Hey all...

I'm encountering a casting style problem that I'm not able to find a good way around.

Currently, I have something that looks like this

istream_iterator<string> string_input;

this iterator works great when I'm reading my input file, but later I use it to grab input from
the console as such

string_input j(cin);

however, I want to convert the contents of j into
a vector<char> container, according to the book
I'm using, string provides a conversion to vector<char>. So I issue one of these..

vector<char> lookup = *j;

During compiling, I get an error that basically states, cannot convert from const basic_string<..> to vector<char....>. My book states the conversion is possible, however, the compiler says no.

Why?


I drank what? - Socrates

Contact me via ICQ - 23239270