Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 5 years ago

Language

C++

Compiler

gcc 10.1.0

Options
Warnings
Don't Use Boost
C++17
no pedantic

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){
      |           ~~~~~~~~~~~~^~~
Exit Code:
0