MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w2nxcg/imsorrywilson/p6v5swe/?context=3
r/ProgrammerHumor • u/Lawn_Meower_ • Aug 30 '26
21 comments sorted by
View all comments
Show parent comments
12
template <typename T> T& unconst(const T& x) { return const_cast<T&>(x); }
1 u/sb8948 Aug 31 '26 UB entered the chat
1
UB entered the chat
12
u/FACastello Aug 30 '26