fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template <typename ...Types>
  5. void call_func(void * state, const char * name, Types ... args )
  6. {
  7.  
  8. }
  9.  
  10. struct LuaWrapper{
  11. template <typename ...Types>
  12. static void call( void * state, const char * name, Types ... args )
  13. {
  14. call_func(state, name, args...);
  15. }
  16. };
  17.  
  18. int main() {
  19. LuaWrapper w;
  20. w.call(nullptr, "");
  21. w.call(nullptr,"",1,2,3);
  22. w.call(nullptr,"",1.0f);
  23. return 0;
  24. }
Success #stdin #stdout 0s 3136KB
stdin
Standard input is empty
stdout
Standard output is empty