Const reference instead of copying?
fleshka4 opened this issue · comments
Why we have to copy each of these positions? We are using C++ to have a better performance. Let's replace it with const references
Have you tested if it makes a difference? And besides, in most cases, it's meant to move the objects. I think it's better, I start use std::move to make that more clear.