Hacker News new | ask | show | jobs
by gmueckl 1769 days ago
I belive that you do not sufficiently understand the giant footgun that is unconstrained auto, especially in the context of very template-heavy code. Concepts solve the issue that judicious use of auto will allow template instantiations to succeed that are plain wrong in that they will happily do the wrong thing just because the types involved fit the constraints by mere chance and not because they were meant to be used together like this.
1 comments

Unconstrained auto is unwise in globally accessible templates that participate in overload resolution, but is fine in lambda literals.