fork download
  1. template<typename U, typename... T>
  2. void f1(void(*)(U, T...)) {
  3. }
  4.  
  5. template<typename... T, typename U>
  6. void f2(void(*)(T..., U)) {
  7. }
  8.  
  9. void g(int, char) { }
  10.  
  11. int main() {
  12. f1(g);
  13. // f2<int, char>(g); // does not compile
  14. // f2(g); // does not compile
  15. }
Success #stdin #stdout 0s 3464KB
stdin
Standard input is empty
stdout
Standard output is empty