
3 May
2010
3 May
'10
1:45 a.m.
On 05/02/2010 06:36 PM, Chad Nelson wrote:
On 05/02/2010 07:20 PM, Jeffrey Lee Hellrung, Jr. wrote:
I think it is important to understand what the discrepancy is, because it may be that you're not writing your algorithms in a move-aware way, producing copies unnecessarily. This wouldn't surprise me if you wrote the original implementations with COW primarily in mind (which I can't blame you for).
I did, of course. But with the exception of operator+ and operator-, I don't see anything that could benefit from additional move-specific overloads.
Oh, I think I misunderstood your comment in a previous message. You mean you don't see any advantage in modifying the arguments to functions other than operator+ and operator-? - Jeff