template<unsigned N> void foo(int const (&refArr)[N]) { } int main() { int x[] = { 1, 2, 3 }; foo(x); foo({1, 2, 3}); }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:9: error: expected primary-expression before ‘{’ token
Standard output is empty