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

2

u/38thTimesACharm May 21 '26

 std::super_long_function_name_but_wait_we_can_make_it_even_longer_copyable_moveable_exceptional_plus_plus_plus_function

Is this level of hyperbole really appropriate? It's just one word added, copyable, and I'm not aware of any place where the std has done this twice to the same type.

(I appreciate your point though. std::function's semantics, while in some ways undesirable, aren't what I would call broken.)