May 7, 2019

[C++] -Wredundant-move && -Wpessimizing-move

2 flags for compiling(both clang++ / g++ support these flags) as well as vimrc usage :-)

-Wpessimizing-move
-Wredundant-move

Those 2 flags become quite useful in C++17 since the standard makes RVO mandatory.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.