https://issues.dlang.org/show_bug.cgi?id=24688
Nick Treleaven <n...@geany.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |n...@geany.org --- Comment #1 from Nick Treleaven <n...@geany.org> --- To do that, the compiler would have to analyse the body of the template function. Because T may be used to declare something that needs to be const in order for the function to compile, e.g. T*, T[]. --