3 ms·
Casting away constness in C++ is something it is virtually never done, and has to be done very explicitly.
by gdxhyrd 7y ago
Casting away constness in C++ is something it is virtually never done, and has to be done very explicitly.
- masklinn 7y ago> https://github.com/search?q=const_cast&type=Code https://github.com/search?q=const_cast&type=Code We must have very different notions of "virtually never": https://github.com/search?q=const_cast&type=Code https://github.com/search?q=const_cast&type=Code > has to be done very explicitly. That doesn't make it visible to the caller.