Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 6 years ago

Language

C++

Compiler

gcc 7.3.0

Options
Warnings
Boost 1.69.0
C++11(GNU)
no pedantic

Author

anonymous

about 6 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-7.3.0/include -std=gnu++11
[&]1 1
2 2
[&x]2 2
3 2
[&x, y]3 2
4 2
[&, y]4 2
5 2
[=]5 2
foo: 6 3
5 2
foo: 7 4
5 2
[=, &y]5 2
foo: 6 3
5 3
foo: 7 4
5 4
[x]5 4
foo: 6
5 4
foo: 7
5 4
Exit Code:
0