Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

gcc HEAD 10.0.0 20200106 (experimental)

Options
Warnings
Boost 1.71.0
C++2a
-pedantic

Author

anonymous

over 5 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.71.0/gcc-head/include -std=c++2a -pedantic
prog.cc: In function 'int main()':
prog.cc:19:10: warning: variable 'list2' set but not used [-Wunused-but-set-variable]
   19 |     auto list2 = list.map(+[](int n) -> int {
      |          ^~~~~
prog.cc: In instantiation of 'List<OutType> List<T>::map(OutType (*)(T)) [with OutType = int; T = int]':
prog.cc:21:6:   required from here
prog.cc:10:5: warning: no return statement in function returning non-void [-Wreturn-type]
   10 |     }
      |     ^
3
Exit Code:
0