You could use the &str[0] trick to get a pointer, though that will only be properly well defined in the next version of C++. Alternatively, you could copy the std::string to a std::vector<char>, and then use the &x[0] trick to get a pointer (which you assign to the pointer that should be modified).Originally Posted by Ducky