2011/7/22 Nathan Lewis
TONGARI
writes: 2011/7/22 Nathan Lewis
char_string_vector_iterator it =
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
mymap->char_string_vector_vector_.begin(); the iterator itself.HTH
_______________________________________________ Boost-users mailing list Boost-users <at> lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
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++; }
string myNewString(it->begin(), it->end()); //or string myNewString(it->c_str()); HTH