change from const refs to value and use std::move
when compiling with undefined behaviour sanitizer and gcc 8.2 a -Werror=maybe-uninitialized warning appears when using the const refs the std::move variant does not have this problem
Please register or sign in to comment