overloading function with function templates
    BCS 
    ao at pathlink.com
       
    Thu Dec 27 19:01:11 PST 2007
    
    
  
Reply to mstrlu,
> Hello,
> I  just discovered that its not possible to write a function template
> with the same identifier as an existing function ( even though the
> function arguments are different ):
> import std.stdio;
> 
IIRC you can overload a template with some template args and a template with 
no args
int Foo(T)(T arg){...}
int Foo()(int a, int b){...}
    
    
More information about the Digitalmars-d-learn
mailing list