3 ms·
That won’t work. Copy elisions only happen when they are copy constructed from prvalues, not simply an rvalue. The pointer deref is unavoidable if you pass a l
by CyberRabbi 6y ago
That won’t work. Copy elisions only happen when they are copy constructed from prvalues, not simply an rvalue.
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.
- PartiallyTyped 6y agoI see, thanks!