Templated Function can't deduce function arguments
    Steven Schveighoffer 
    schveiguy at yahoo.com
       
    Wed May 22 18:31:53 PDT 2013
    
    
  
On Wed, 22 May 2013 21:16:44 -0400, Jonathan Crapuchettes  
<jcrapuchettes at gmail.com> 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...)
> {
>     void test(T...)(const Types v, const T values...)
Do you need that last elipsis?  I thought you didn't, but not sure.
-Steve
    
    
More information about the Digitalmars-d-learn
mailing list