[Issue 4215] auto ref parameters don't work with class template variables
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri May 21 05:12:23 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4215
Trass3r <mrmocool at gmx.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
--- Comment #2 from Trass3r <mrmocool at gmx.de> 2010-05-21 05:12:20 PDT ---
class Foo(T)
{
void bar(auto ref T item)
{
}
}
void main()
{
Foo!(int) f;
}
gives
test.d(3): Error: auto can only be used for template function parameters
Hmm ok, maybe it rather is an enhancement.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list