Language
C++
Compiler
gcc HEAD 8.0.0 20170502 (experimental)
Options
Warnings
Boost 1.64.0
C++1z(GNU)
-pedantic-errors
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.64.0/gcc-head/include -std=gnu++1z -pedantic-errors
c: 1 3 2 a foo
c2: 1 3 2 a foo
c after clearing c:
c2 after clearing c: 1 3 2 a foo
c after assignment to c2: 1 3 2 a foo
Visiting c (should double ints and doubles)
c: 2 6 4 a foo
Visiting c again (should append "bar" to all strings)
c: 2 6 4 a foobar
Size of c: 5
Number of integers in c: 2
Exit Code:
0