r/cpp • • Jul 29 '26

const_cast: A Necessary Evil

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

106 comments sorted by

View all comments

Show parent comment

3

u/ABlockInTheChain Jul 30 '26

If only std::optional had been invented from the very beginning.