fork(1) download
  1. template <const int &>
  2. struct Foo {};
  3.  
  4. Foo<7> f;
  5.  
  6. int main() {}
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:4:6: error: ‘7’ is not a valid template argument for type ‘const int&’ because it is not an lvalue
prog.cpp:4:9: error: invalid type in declaration before ‘;’ token
stdout
Standard output is empty