Language
C++
Compiler
clang 8.0.0
Options
Warnings
Don't Use Boost
C++17
-pedantic-errors
$ clang++ prog.cc -Wall -Wextra -std=c++17 -pedantic-errors
Exit Code:
0
Author
anonymous
about 6 years ago
C++
clang 8.0.0
Author
anonymous
about 6 years ago
$ clang++ prog.cc -Wall -Wextra -std=c++17 -pedantic-errors
prog.cc:21:10: warning: local variable 'derived' will be copied despite being returned by name [-Wreturn-std-move]
return derived;
^~~~~~~
prog.cc:21:10: note: call 'std::move' explicitly to avoid copying
return derived;
^~~~~~~
std::move(derived)
1 warning generated.