On Tuesday, 23 June 2015 at 16:27:34 UTC, Jonathan M Davis wrote:
On Tuesday, 23 June 2015 at 13:52:19 UTC, Daniel N wrote:
On Tuesday, 23 June 2015 at 11:03:10 UTC, Jonathan M Davis wrote:
[...]

Thus the solution cannot require const.

auto is worse because, if you later decide you need to add a template parameter then the meaning is changed and you get a _hidden_ performance issue.

And how does it introduce a hidden performance issue. You'd end up with some template bloat, but that's it, and that's just going to increase the memory footprint of your program slightly, which isn't generally going to be a performance issue. It's just going to make your program slightly larger.

- Jonathan M Davis

instruction cache misses can really hurt

Reply via email to