4 ms·
Yes, looking at some of the code others have shared, I realized where my confusion and mistake was. I mistakenly treated in my mind `foo(obj&& x)` as `foo(obj
by tsimionescu 10mo ago
Yes, looking at some of the code others have shared, I realized where my confusion and mistake was.
I mistakenly treated in my mind `foo(obj&& x)` as `foo(obj x)`, which would indeed move or copy statically. But with functions that take an r-value reference, you're of course absolutely right, it becomes impossible to determine statically if they will move or not.