https://d.puremagic.com/issues/show_bug.cgi?id=12425
Summary: allow default values for "auto ref"
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Vladimir Panteleev <[email protected]> 2014-03-20
18:29:40 EET ---
E.g.: void foo(T)(auto ref T t = 5)
The parameter becomes a reference if the default expression is an lvalue (e.g.
*new int(5)).
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------