Language
C++
Compiler
gcc 11.1.0
Options
Warnings
Boost 1.76.0
C++17
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.76.0/gcc-11.1.0/include -std=c++17
Exit Code:
0
Author
anonymous
almost 4 years ago
C++
gcc 11.1.0
Author
anonymous
almost 4 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.76.0/gcc-11.1.0/include -std=c++17
prog.cc: In instantiation of 'auto foo(T&&, T&&) [with T = std::vector<int>&; std::enable_if_t<is_container_v<typename std::remove_reference<_Tp>::type>, int>* <anonymous> = 0]':
prog.cc:23:6: required from here
prog.cc:15:14: warning: unused parameter 'first' [-Wunused-parameter]
15 | auto foo(T&& first, T&& second) {
| ~~~~^~~~~
prog.cc:15:25: warning: unused parameter 'second' [-Wunused-parameter]
15 | auto foo(T&& first, T&& second) {
| ~~~~^~~~~~