Re:Why introduce `std::launder` rather than have the compile...
by gpderetta on Saturday January 22, 2022 @01:11PM
(#30039228)
Auto (and type deduction in general) is important in generic code.
[ Parent
| on HN ]
Re:Why introduce `std::launder` rather than have the compile...
by tsimionescu on Saturday January 22, 2022 @03:01PM
(#30040305)
C++ had generic code for many years before auto (and decltype) existed. It definitely makes things easier, and I believe there are some types today that work with auto but can't be named otherwise. But, it's not directly required outside of these.
Template parameter inference, which mostly uses the same rules, is probably required in some SFINAE constructs, but is also not essential in other places.