fork download
  1. template <class T>
  2. void foo(T& value)
  3. {
  4. class boo
  5. {
  6. public: T val;
  7. boo (T value)
  8. {
  9. val =value;
  10. }
  11. ~boo(){}
  12. };
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'void foo(T&)':
prog.cpp:12:6: error: expected '}' at end of input
     };
      ^
stdout
Standard output is empty