What's wrong with keeping that
std::string
as a long-term storage for the characters? Why do you want to copy them elsewhere?