[Issue 24688] Parameter by-value keeps const (only in templates)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 30 15:35:56 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=24688

Nick Treleaven <nick at geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick at geany.org

--- Comment #1 from Nick Treleaven <nick at 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[].

--


More information about the Digitalmars-d-bugs mailing list