Bug 10156 – Can't handle usage of TypeTuple argument in templated function

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-05-23T13:43:00Z
Last change time
2013-07-24T11:37:58Z
Keywords
industry
Assigned to
nobody
Creator
jcrapuchettes

Comments

Comment #0 by jcrapuchettes — 2013-05-23T13:43:47Z
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)
Comment #1 by jcrapuchettes — 2013-07-24T11:37:58Z
Working in 2.063.2. Thank you!