any::operator= should have by-value argument
When a copy assignment operator is implemented simply by doing copy-and-swap, it should pass its argument by value, instead of doing the copy inside the body of the function, to allow the compiler to do copy elision. As was discussed at the Boost developer mailing list, Improving the assignment operators of various Boost types.
So please consider the attached patch.
Change History
(6)
| Type: |
Bugs → Feature Requests
|
| Resolution: |
→ fixed
|
| Status: |
new → closed
|
| Milestone: |
Boost 1.37.0 → Boost 1.38.0
|
This is not a bug, this is a feature request.