Language
C++
Compiler
gcc 12.1.0
Options
Warnings
Optimization
Boost 1.79.0
C++17
-pedantic
$ g++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.79.0-gcc-12.1.0/include -std=c++17 -pedantic
func called
Exit Code:
0
Author
anonymous
almost 3 years ago
C++
gcc 12.1.0
Author
anonymous
almost 3 years ago
$ g++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.79.0-gcc-12.1.0/include -std=c++17 -pedantic
prog.cc: In instantiation of 'std::enable_if_t<conjunction_v<std::is_same<_Tp, _Types>...>, bool> func(const T&, const Args& ...) [with T = int; Args = {int}; std::enable_if_t<conjunction_v<std::is_same<_Tp, _Types>...>, bool> = bool]':
prog.cc:15:9: required from here
prog.cc:6:16: warning: unused parameter 'first' [-Wunused-parameter]
6 | func(const T & first, const Args & ... args)
| ~~~~~~~~~~^~~~~
prog.cc:6:36: warning: unused parameter 'args#0' [-Wunused-parameter]
6 | func(const T & first, const Args & ... args)
| ~~~~~~~~~~~~~^~~~~~~~
func called