Language
C++
Compiler
gcc 12.1.0
Options
Warnings
Don't Use Boost
C++17
-pedantic-errors
$ g++ prog.cc -Wall -Wextra -std=c++17 -pedantic-errors
Exit Code:
1
Author
anonymous
over 2 years ago
C++
gcc 12.1.0
Author
anonymous
over 2 years ago
$ g++ prog.cc -Wall -Wextra -std=c++17 -pedantic-errors
prog.cc: In function 'int main()':
prog.cc:4:25: error: cannot bind non-const lvalue reference of type 'std::tuple<int, double>&' to an rvalue of type 'std::tuple<int, double>'
4 | auto& [i, d] = std::tuple{1, 1.0};
| ^~~~~~~~~~~~~