May 23, 2013 [Issue 10156] New: Can't handle usage of TypeTuple argument in templated function | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=10156 Summary: Can't handle usage of TypeTuple argument in templated function Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: jcrapuchettes@gmail.com --- Comment #0 from Jonathan Crapuchettes <jcrapuchettes@gmail.com> 2013-05-23 13:43:47 PDT --- DMD says that it can't deduce template function argument types when the function is defined with a TypeTuple argument and a variadic template argument. Example: --- import std.typetuple; alias TestT = TypeTuple!(dchar, int); void main() { test('b', 6, 'a', 54); } void test(T...)(const TestT v, const T values) { } --- DMD 2.062 output: test.d(7): Error: template test.test does not match any function template declaration. Candidates are: test.d(10): test.test(T...)(const TestT v, const T values) test.d(7): Error: template test.test(T...)(const TestT v, const T values) cannot deduce template function from argument types !()(char,int,char,int) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 24, 2013 [Issue 10156] Can't handle usage of TypeTuple argument in templated function | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jonathan Crapuchettes | http://d.puremagic.com/issues/show_bug.cgi?id=10156 Jonathan Crapuchettes <jcrapuchettes@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Jonathan Crapuchettes <jcrapuchettes@gmail.com> 2013-07-24 11:37:58 PDT --- Working in 2.063.2. Thank you! -- 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