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