I would like to copy the contents of a vector to one long string with a custom delimiter. So far, I\'ve tried:
vector
string
// .h string getLabe
Use delimiter.c_str() as the delimiter:
copy(x.begin(),x.end(), ostream_iterator(s,delimiter.c_str()));
That way, you get a const char* pointing to the string, which is what ostream_operator expects from your std::string.
const char*
ostream_operator
std::string