Re:C++26: A Placeholder with No Name
by jayd16 on Saturday January 11, 2025 @12:03PM
(#42667183)
Was this tongue in cheek? If you _can_ use inference it was at least obvious enough to the compiler. Otherwise you're just saying "I use it when I feel like it."
[ Parent
| on HN ]
auto x = func(); // no idea about func return type
auto x = new Widget(); // DRY
auto sum (auto a, auto b); // template function without boilerplate
Use the same principle in other contexts.