Timeline for answer to How to convert a std::string to const char* or char* by Alessandro Teruzzi
Current License: CC BY-SA 4.0
Post Revisions
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 16, 2021 at 11:17 | history | edited | Peter Mortensen | CC BY-SA 4.0 |
Added some context, etc.
|
| Sep 5, 2015 at 22:27 | comment | added | bcrist |
I would avoid this naming convention. c_str() as used by std is an abbreviation for "C-string" not "const string" and str() always returns a std::basic_string, not char* (for example std::stringstream::str())
|
|
| Oct 6, 2014 at 7:45 | history | edited | Niall | CC BY-SA 3.0 |
Inline code
|
| Mar 29, 2011 at 13:32 | history | answered | Alessandro Teruzzi | CC BY-SA 2.5 |