No! It works fine, and I have no desire to stick std::super_long_function_name_but_wait_we_can_make_it_even_longer_copyable_moveable_exceptional_plus_plus_plus_function all over the place!
Auto_ptr was fatally broken. Std::function is not, please leave it alone.
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.)
View all comments
Show parent comment
14
u/johannes1971 May 20 '26
No! It works fine, and I have no desire to stick std::super_long_function_name_but_wait_we_can_make_it_even_longer_copyable_moveable_exceptional_plus_plus_plus_function all over the place!
Auto_ptr was fatally broken. Std::function is not, please leave it alone.