TONGARI <tongari95 <at> gmail.com> writes:
>
>
> 2011/7/22 Nathan Lewis <nathanlewissubscription <at> gmail.com>
>
> char_string_vector_iterator it = mymap->char_string_vector_vector_.begin();
> while (it != mymap->char_string_vector_vector_.end())
> {
> // error is on the line below
cout << "Inserted String is: " << it << endl;
>
>
>
> cout << "Inserted String is: " << *it << endl; You need the dereference not
the iterator itself.HTH
>
>
>
>
If I want to create a new local string out of what was put in shared memory?
Thoughts?
while (it != mymap->char_string_vector_vector_.end())
{
string myNewString(*it); // doesn't compile
string myNewString(*it.c_str()); // apparently no equivalent
cout << "Inserted String is: " << *it << endl;
it++;