>>755
std::string str = "a";
const char* cs = str.c_str();
f(cs);
と
std::string str = "a";
f(str.c_str());
が同じってことは分かる?