You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix#53, moving a temporary object prevents copy elision
Fix for build and improve forwarding rvalues.
Before change when postpone() with lvalue:
- Total ctor:1
- Total COPY ctor:2
- Total MOVE ctor:2
After: (1 less copy)
- Total ctor:1
- Total COPY ctor:1
- Total MOVE ctor:2
---
Before change when postpone() with rvalue:
- Total ctor:1
- Total COPY ctor:1
- Total MOVE ctor:2
After: (instead copy, move)
- Total ctor:1
- Total COPY ctor:0
- Total MOVE ctor:3