Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
prog.cc: In function 'int main()':
prog.cc:8:88: error: too many initializers for 'const std::array<<unnamed struct>, 4>'
static constexpr std::array<code_t, 4> b_ = {{'a', 0}, {'b', 0}, {'x', 1}, {'y', 1}};
^
prog.cc:7:29: warning: unused variable 'a_' [-Wunused-variable]
static constexpr code_t a_[4] = {{'a', 0}, {'b', 0}, {'x', 1}, {'y', 1}};
^~
prog.cc:8:44: warning: unused variable 'b_' [-Wunused-variable]
static constexpr std::array<code_t, 4> b_ = {{'a', 0}, {'b', 0}, {'x', 1}, {'y', 1}};
^~
Exit Code:
1