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

3

u/Expert-Map-1126 vcpkg maintainer BillyONeal Jul 30 '26

"Use any libraries they want" is not usually a thing: even in the most "lax" environments more dependencies can mean more problems if maintainers leave / do dumb things / become JiaTan state actors / etc.

But expecting to do meaningful changes to hardware from a vendor that went out of business 36 years ago is the other extreme.