what is equivalent to template template

Erik Smith via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue May 3 14:31:35 PDT 2016


C++ has template templates.  I'm not sure how to achieve the same 
effect where (in example below) the template function myVariadic 
is passed to another function.

         void myVaridatic(A...)(A a) {}

         static void call(alias F,A...)(F f,A a) {
             f(a);
         }

         void foo() {
             call(myVaridatic,1,2,3);
         }


More information about the Digitalmars-d-learn mailing list