fork download
  1. template <int line, typename FuncSig, FuncSig f>
  2. struct HelperWrapper;
  3.  
  4. // [...]
  5.  
  6. template <int line, typename Ret, Ret (&Func)()>
  7. struct HelperWrapper<line, Ret (&)(), Func>
  8. {
  9. static inline int WrapFuncT(const int)
  10. {
  11. return 0; // Changed
  12. }
  13. };
  14.  
  15. // Unary
  16. template <int line, typename Ret, typename Arg1, Ret (&Func)(Arg1)>
  17. struct HelperWrapper<line, Ret (&)(Arg1), Func>
  18. {
  19. static inline int WrapFuncT(const int)
  20. {
  21. return 1; // Changed
  22. }
  23. };
  24.  
  25. void none (){}
  26. void one (int) {}
  27.  
  28. int main () {
  29. HelperWrapper<0, void (&)(), none>::WrapFuncT(0);
  30. HelperWrapper<1, void (&)(int), one>::WrapFuncT(0);
  31. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
Standard output is empty