MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1v9zcrn/const_cast_a_necessary_evil/p0ymtl7/?context=3
r/cpp • u/pavel_v • Jul 29 '26
106 comments sorted by
View all comments
Show parent comment
1
Yes that's a benefit but tbh I consider it to be a trap more than a good thing that you can call unqualified member functions on both lvalues and rvalues.
View all comments
Show parent comment
1
u/_Noreturn Jul 31 '26
Yes that's a benefit but tbh I consider it to be a trap more than a good thing that you can call unqualified member functions on both lvalues and rvalues.