prog.cpp: In function 'int main()':
prog.cpp:27:13: error: lambda-expression in template-argument
SingleFunc<[](){std::cout<<"!\n"}> s;
^
prog.cpp:27:35: error: template argument 1 is invalid
SingleFunc<[](){std::cout<<"!\n"}> s;
^
prog.cpp:29:4: error: request for member 'run' in 's', which is of non-class type 'int'
s.run();
^