July 21, 2008 [Issue 2239] New: Template instantiation failure when template parameter type passed as template parameter. | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=2239 Summary: Template instantiation failure when template parameter type passed as template parameter. Product: D Version: 2.018 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: simen.kjaras@gmail.com struct foo(T, T a) {} void bar(T, T a)(foo!(T, a) f) {} void main() { foo!(float, 0) f; bar!(float, 0)(f); // cannot implicitly convert expression (f) of type foo!(float,0) to foo!(float,A) } If a's type is instead set in the template definition, this compiles correctly. -- |
June 17, 2010 [Issue 2239] Template instantiation failure when template parameter type passed as template parameter. | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2239 Simen Kjaeraas <simen.kjaras@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Simen Kjaeraas <simen.kjaras@gmail.com> 2010-06-17 10:44:15 PDT --- *** This issue has been marked as a duplicate of issue 2372 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation