#include <initializer_list> void f(std::initializer_list<int>) {} int main() { f{5}; // compile time error, must use f({5}) }
Standard input is empty
prog.cpp: In function 'int main()':
prog.cpp:7:6: error: expected ';' before '{' token
f{5}; // compile time error, must use f({5})
^
Standard output is empty