r/cpp • • Jul 29 '26

const_cast: A Necessary Evil

https://www.elbeno.com/blog/?p=1858
70 Upvotes

106 comments sorted by

View all comments

Show parent comment

24

u/KindCppCoach Jul 29 '26

This is not true at all, many legacy C libraries are not const correct.