Language
C++
Compiler
gcc HEAD 9.0.0 20181207 (experimental)
Options
Warnings
Boost 1.68.0
C++2a(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-head/include -std=gnu++2a
single
double
Exit Code:
0
Author
anonymous
over 6 years ago
C++
gcc HEAD 9.0.0 20181207 (experimental)
Author
anonymous
over 6 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-head/include -std=gnu++2a
prog.cc: In instantiation of 'void List<T>::Add(T&) [with T = int]':
prog.cc:17:17: required from here
prog.cc:8:17: warning: unused parameter 'item' [-Wunused-parameter]
8 | void Add(T& item) {cout<<"single\n";}
| ~~~^~~~
prog.cc: In instantiation of 'void List<T>::Add(T&&) [with T = int]':
prog.cc:18:15: required from here
prog.cc:7:18: warning: unused parameter 'item' [-Wunused-parameter]
7 | void Add(T&& item) {cout<<"double\n";}
| ~~~~^~~~
single
double