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

-3

u/pjmlp May 20 '26

The question is I guess, when is it an ABI break to change the signature, or remove deprecated functionality like auto_ptr.

The end result is the same, an existing application no longer compiles after an update.

5

u/MFHava WG21|🇦🇹 NB|P3049|P3625|P3729|P3786|P3813|P4216 May 20 '26

The question is I guess, when is it an ABI break to change the signature,

For the third time in this comment thread alone: adding support for const in the template signature of function and applying the design of move_only_function would not have been a hard ABI break (implementations could easily patch this up behind the scenes).

That was not the motivation for a new type...