fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void MyFunc()
  5. {
  6. cout << "message" << endl;
  7. }
  8.  
  9. template<typename Func, Func* func, typename... Args>
  10. void FuncShell(Args... args)
  11. {
  12. func(args...);
  13. }
  14.  
  15. int main()
  16. {
  17. FuncShell<decltype(MyFunc), &MyFunc>();
  18. cout << (size_t)(&FuncShell<decltype(MyFunc), &MyFunc>);
  19. return 0;
  20. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
message
134514912