'final' function implementations in interface definition
    HOSOKAWA Kenchi 
    hskwk at inter7.jp
       
    Sun Jun  7 16:52:05 PDT 2009
    
    
  
Steve Schveighoffer Wrote:
> 
> f_twice can be a template:
> 
> void f_twice()(int i) { f(i); f(i); }
> 
> It's pretty much exactly what you want.  It should even work without 
> explicit instantiation.
> 
> -Steve
I have tried to replace final function in the interface with your code. finally I got following message.
Error: function I.f_twice!().f_twice template member function not allowed in interface I
    
    
More information about the Digitalmars-d
mailing list