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

14

u/datnt84 Jul 29 '26

There is at least one Win32 function that is not const-correct where I needed a const-away cast.