by PartiallyTyped · 5y ago · 0 comments
Widget && temp = complicated_long_function(...);
consume(temp);
Am i missing something?The pointer deref is unavoidable if you pass a large enough object by value, which is what’s happening here. On x86_64, generally values larger than 16 bytes are passed by reference transparently.
How does any copy-construction happen here?