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

7

u/tpecholt May 20 '26

auto completion would work better if the "function" is a prefix not suffix that was the point.

I can make aliases but it's not what average c++ programmer does. You would expect the defaults are right for most programmers. But in C++ defaults are wrong.

3

u/neondirt May 20 '26

Reasonably good completion will complete by suffix as well (simply a substring search).

2

u/kgnet88 May 20 '26

I think alias definition should one of the earlier things somebody should learn... Its extremly easy and you can homogenise your code base (and especially give the standard library types better names)