Re: Templated Function can't deduce function arguments

2013-05-23 Thread Jonathan Crapuchettes
Thank you for the help. Bug report at http://d.puremagic.com/issues/ show_bug.cgi?id=10156

Re: Templated Function can't deduce function arguments

2013-05-23 Thread Timon Gehr
On 05/23/2013 07:21 PM, Jonathan Crapuchettes wrote: On Wed, 22 May 2013 23:28:21 -0400, Jonathan M Davis wrote: On Wednesday, May 22, 2013 21:31:53 Steven Schveighoffer wrote: On Wed, 22 May 2013 21:16:44 -0400, Jonathan Crapuchettes wrote: Can anyone tell me why this doesn't compile? Dmd

Re: Templated Function can't deduce function arguments

2013-05-23 Thread Jonathan Crapuchettes
On Wed, 22 May 2013 23:28:21 -0400, Jonathan M Davis wrote: > On Wednesday, May 22, 2013 21:31:53 Steven Schveighoffer wrote: >> On Wed, 22 May 2013 21:16:44 -0400, Jonathan Crapuchettes >> >> wrote: >> > Can anyone tell me why this doesn't compile? Dmd 2.062 says that it >> > cannot deduce the

Re: Templated Function can't deduce function arguments

2013-05-22 Thread Jonathan M Davis
On Wednesday, May 22, 2013 21:31:53 Steven Schveighoffer wrote: > On Wed, 22 May 2013 21:16:44 -0400, Jonathan Crapuchettes > > wrote: > > Can anyone tell me why this doesn't compile? Dmd 2.062 says that it > > cannot deduce the template function from arguments types. > > > > import std.stdio; >

Re: Templated Function can't deduce function arguments

2013-05-22 Thread Steven Schveighoffer
On Wed, 22 May 2013 21:16:44 -0400, Jonathan Crapuchettes wrote: Can anyone tell me why this doesn't compile? Dmd 2.062 says that it cannot deduce the template function from arguments types. import std.stdio; void main() { test!(dchar, int)('b', 6, 'a', 54); } template test(Types..

Templated Function can't deduce function arguments

2013-05-22 Thread Jonathan Crapuchettes
Can anyone tell me why this doesn't compile? Dmd 2.062 says that it cannot deduce the template function from arguments types. import std.stdio; void main() { test!(dchar, int)('b', 6, 'a', 54); } template test(Types...) { void test(T...)(const Types v, const T values...) {