Language
C++
Compiler
gcc HEAD 9.0.0 20180828 (experimental)
Options
Warnings
Boost 1.68.0
C++11
-pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-head/include -std=c++11 -pedantic
is integral
NOT integral
Exit Code:
0
Author
anonymous
over 6 years ago
C++
gcc HEAD 9.0.0 20180828 (experimental)
Author
anonymous
over 6 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-head/include -std=c++11 -pedantic
prog.cc: In instantiation of 'void foo::bar(S&&) [with S = int; typename std::enable_if<std::is_integral<_Tp>::value, int>::type <anonymous> = 0]':
prog.cc:21:12: required from here
prog.cc:7:18: warning: unused parameter 's' [-Wunused-parameter]
7 | void bar(S&& s)
| ~~~~^
prog.cc: In instantiation of 'void foo::bar(S&&) [with S = double; typename std::enable_if<(! std::is_integral<_Tp>::value), int>::type <anonymous> = 0]':
prog.cc:22:14: required from here
prog.cc:12:18: warning: unused parameter 's' [-Wunused-parameter]
12 | void bar(S&& s)
| ~~~~^
is integral
NOT integral