Jul 03

How do I cast from std:string to char*?

We can’t do that. The only thing we can get from an std::string is a const char*, which means that we can’t modify it. You get this by calling string::c_str().

Incoming search terms for the article:

casting of std string* to char *

Leave a Reply

Features Stats Integration Plugin developed by YD