Templated static opCall in non-templated struct
    Philippe Sigaud 
    philippe.sigaud at gmail.com
       
    Tue Feb 11 11:15:14 PST 2014
    
    
  
On Tue, Feb 11, 2014 at 1:05 AM, Namespace <rswhite4 at googlemail.com> wrote:
>>         static opCall(int i)(int j, int k)
>>         {
>>                 return Foo(i+j,i+k);
>>         }
>>         auto bob = Foo!(1)(2,3); //Error:
> Welcome to my world ;)
> http://forum.dlang.org/thread/hdocnxglxmfpacnpmouh@forum.dlang.org
Did you try using a templated constructor?
    
    
More information about the Digitalmars-d-learn
mailing list