On Wednesday, 30 March 2016 at 12:57:56 UTC, Mathias Lang wrote:
It's a design decision. You want to be able to fix the exact
type of your function, in order to provide headers for them for
example (so you can work with libraries for which the source
code is not available).
If you want attribute inference, you can either make it a dummy
template or, with a recent enough compiler, use `auto` return
type.
Note that giving your function an `auto` return type is the same
as making it template function with no template args.