Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
converting a char* to a const char*
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Juha Nieminen, post: 3606558"] Isn't that what static_cast is for? const_cast sounds like the wrong tool for the job (because common C++ wisdom dictates that static_cast is good and const_cast should usually be avoided if possible). You may as well say "if you want to add constness eg. for overload resolution, use reinterpret_cast". That's just wrong. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
converting a char* to a const char*
Top