[Issue 10156] New: Can't handle usage of TypeTuple argument in templated function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 23 13:43:48 PDT 2013
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 at puremagic.com
ReportedBy: jcrapuchettes at gmail.com
--- Comment #0 from Jonathan Crapuchettes <jcrapuchettes at 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: -------
More information about the Digitalmars-d-bugs
mailing list