Language
C++
Compiler
gcc 4.9.4
Options
Warnings
Optimization
Boost 1.75.0
C++14(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.75.0-gcc-4.9.4/include -std=gnu++14
Trying to move-assign A from rvalue temporary
move assigned
Trying to move-assign A from xvalue
move assigned
Trying to move-assign B
Before move, b1.s = "test"
move assigned
After move, b1.s = "test"
Trying to move-assign C
copy assigned
Trying to move-assign D
move assigned
Exit Code:
0