fork download
  1. template<unsigned N>
  2. void foo(int const (&refArr)[N]) {
  3.  
  4. }
  5.  
  6. int main() {
  7. int x[] = { 1, 2, 3 };
  8. foo(x);
  9. foo({1, 2, 3});
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:9: error: expected primary-expression before ‘{’ token
stdout
Standard output is empty