Today being asked by SiMing about what's the use of const_cast in C++?
Auh~
Correct usage(s) of const_cast<>
Besides that, const_cast can also cast away volatile.
volatile: The Multithreaded Programmer's Best Friend - Andrei Alexandrescu
http://en.cppreference.com/w/cpp/language/const_cast
nice~
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.