r/cpp • • May 20 '26

C++26: More function wrappers

https://www.sandordargo.com/blog/2026/05/20/cpp26-copyable-function
118 Upvotes

37 comments sorted by

View all comments

Show parent comment

1

u/johannes1971 May 21 '26

Yes, but const does not apply to destructors! Otherwise you could never clean up any const objects...