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 7 years ago
C++
gcc HEAD 9.0.0 20180828 (experimental)
Author
anonymous
over 7 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&&, std::true_type) [with S = int; std::true_type = std::integral_constant<bool, true>]':
prog.cc:8:9: required from 'void foo::bar(S&&) [with S = int]'
prog.cc:28:12: required from here
prog.cc:13:18: warning: unused parameter 's' [-Wunused-parameter]
13 | void bar(S&& s, std::true_type)
| ~~~~^
prog.cc: In instantiation of 'void foo::bar(S&&, std::false_type) [with S = double; std::false_type = std::integral_constant<bool, false>]':
prog.cc:8:9: required from 'void foo::bar(S&&) [with S = double]'
prog.cc:29:14: required from here
prog.cc:19:18: warning: unused parameter 's' [-Wunused-parameter]
19 | void bar(S&& s, std::false_type)
| ~~~~^
is integral
NOT integral