Language
C++
Compiler
gcc 5.1.0
Options
Warnings
Boost 1.67.0
C++17
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.67.0/gcc-5.1.0/include -std=c++17
Exit Code:
1
Author
anonymous
over 6 years ago
C++
gcc 5.1.0
Author
anonymous
over 6 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.67.0/gcc-5.1.0/include -std=c++17
prog.cc:7:1: error: static assertion failed: ERROR 2: not an initializer_list
static_assert(std::is_same<decltype(a), std::initializer_list<int> >::value, "ERROR 2: not an initializer_list");
^