[Issue 7748] New: Unification of template arguments with parameters does not work with variadics
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 21 11:59:05 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7748
Summary: Unification of template arguments with parameters does
not work with variadics
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: andrei at metalanguage.com
--- Comment #0 from Andrei Alexandrescu <andrei at metalanguage.com> 2012-03-21 11:59:23 PDT ---
Consider:
struct S(T...) {
}
void fun(T1, T2...)(S!(T1) a, S!(T2) b) {
}
void main() {
S!(string) s1;
S!(int, bool) s2;
fun(s1, s2);
}
The example fails to compile, but it works and should associate the two
parameters accordingly. (It does work without variadics.)
--
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