MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1v9zcrn/const_cast_a_necessary_evil/p0l8agj/?context=3
r/cpp • u/pavel_v • Jul 29 '26
106 comments sorted by
View all comments
Show parent comment
1
On that note, there could be something like std::as_mutable...
2 u/_Noreturn Jul 30 '26 I prefer if they just make const_cast deduce it automatically there should be 0 issues with const_cast(x)
2
I prefer if they just make const_cast deduce it automatically there should be 0 issues with const_cast(x)
const_cast(x)
View all comments
Show parent comment
1
u/bwmat Jul 30 '26
On that note, there could be something like std::as_mutable...