Author
anonymous
almost 3 years ago
Language
C++
Compiler
gcc 12.1.0
Options
Warnings
Optimization
Boost 1.79.0
C++17
-pedantic
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, int}; std::enable_if_t<conjunction_v<std::is_same<_Tp, _Types>...>, bool> = bool]':
prog.cc:14: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)
| ~~~~~~~~~~~~~^~~~~~~~
prog.cc:6:36: warning: unused parameter 'args#1' [-Wunused-parameter]
prog.cc: In instantiation of 'std::enable_if_t<conjunction_v<std::is_same<_Tp, _Types>...>, bool> func(const T&, const Args& ...) [with T = std::__cxx11::basic_string<char>; Args = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}; std::enable_if_t<conjunction_v<std::is_same<_Tp, _Types>...>, bool> = bool]':
prog.cc:17: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
func called
Exit Code:
0