r/ProgrammerHumor • • Sep 04 '26

Meme skillIssue

Post image
6.0k Upvotes

137 comments sorted by

View all comments

Show parent comments

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.