Author
anonymous
over 6 years ago
Language
C++
Compiler
clang 7.0.0
Options
Warnings
Boost 1.68.0
C++17
no pedantic
Author
anonymous
over 6 years ago
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/clang-7.0.0/include -std=c++17
prog.cc:25:9: warning: unused parameter 'f' [-Wunused-parameter]
A(I f, I l, O o, S s = S()) {
^
prog.cc:25:14: warning: unused parameter 'l' [-Wunused-parameter]
A(I f, I l, O o, S s = S()) {
^
prog.cc:25:19: warning: unused parameter 'o' [-Wunused-parameter]
A(I f, I l, O o, S s = S()) {
^
prog.cc:25:24: warning: unused parameter 's' [-Wunused-parameter]
A(I f, I l, O o, S s = S()) {
^
prog.cc:30:16: warning: unused parameter 'r' [-Wunused-parameter]
A(const I &r, O o, S s = S()) {
^
prog.cc:30:21: warning: unused parameter 'o' [-Wunused-parameter]
A(const I &r, O o, S s = S()) {
^
prog.cc:30:26: warning: unused parameter 's' [-Wunused-parameter]
A(const I &r, O o, S s = S()) {
^
prog.cc:35:16: warning: unused parameter 'r' [-Wunused-parameter]
A(const I &r, S s = S()) {
^
prog.cc:35:21: warning: unused parameter 's' [-Wunused-parameter]
A(const I &r, S s = S()) {
^
prog.cc:41:13: error: too few template arguments for class template 'A'
int a = A<Q>(1, "Hello!");
^
prog.cc:21:8: note: template is declared here
struct A {
^
9 warnings and 1 error generated.
Exit Code:
1