fork download
  1. namespace foo {
  2. namespace bar {
  3. void put();
  4. }
  5. }
  6.  
  7. namespace foo {
  8. namespace {
  9. template<typename T>
  10. void put() { };
  11. }
  12. void bar::put() {
  13. put<int>();
  14. };
  15. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘void foo::bar::put()’:
prog.cpp:13:13: error: expected primary-expression before ‘int’
prog.cpp:13:13: error: expected ‘;’ before ‘int’
stdout
Standard output is empty