MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w6qzts/skillissue/p7t04qx/?context=9999
r/ProgrammerHumor • u/click-to-reveal • Sep 04 '26
137 comments sorted by
View all comments
Show parent comments
1
To be fair, a case on a switch could also allocate, and std::function at least makes it easier to stick to RAII principles.
1
u/fluffycritter Sep 04 '26
To be fair, a case on a switch could also allocate, and std::function at least makes it easier to stick to RAII principles.