fork download
  1. template<class Func>
  2. class MyClass {
  3. public: Func func;
  4. };
  5.  
  6. struct foo {
  7. int operator () (int i) { return 0; }
  8. };
  9.  
  10. int main ()
  11. {
  12. MyClass<foo> obj;
  13. int i = obj.func(3);
  14. }
  15.  
Success #stdin #stdout 0.01s 2720KB
stdin
Standard input is empty
stdout

Standard output is empty