3 ms·
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 i
by jayd16 2y ago
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."
- pjmlp 2y agoauto 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.