fork download
  1. template <class... A1>
  2. class Test {
  3. public:
  4. template <class... A2>
  5. struct inner {
  6. void print (void(*function)(A2...,A1...)) {
  7. }
  8. };
  9. };
  10.  
  11. void test_print (int a, float b, double c) {
  12. }
  13.  
  14. int main () {
  15. Test<float,double>::inner<int> test;
  16. test.print(&test_print);
  17. }
Success #stdin #stdout 0s 2892KB
stdin
Standard input is empty
stdout
Standard output is empty