Quote Originally Posted by Lindley View Post
The stuff with GetBuffer can of course be done with std::vector<char>, although I'll grant it would be nice if it were available in the std::string class.
note that with the new standard std::string stores chars contiguously, so this issue has been at least mitigated now.