Language
C++
Compiler
gcc 10.1.0
Options
Warnings
Don't Use Boost
C++17
no pedantic
$ g++ prog.cc -Wall -Wextra -std=c++17
Exit Code:
0
Author
anonymous
about 5 years ago
C++
gcc 10.1.0
Author
anonymous
about 5 years ago
$ g++ prog.cc -Wall -Wextra -std=c++17
prog.cc: In instantiation of 'void func(Vec<Type>&&) [with Type = int; Vec = std::vector]':
prog.cc:10:38: required from here
prog.cc:5:10: warning: unused variable 'var' [-Wunused-variable]
5 | Type var = 0;
| ^~~
prog.cc:4:23: warning: unused parameter 'vec' [-Wunused-parameter]
4 | void func(Vec<Type>&& vec){
| ~~~~~~~~~~~~^~~