[fpc-devel] Move operator
Ryan Joseph
genericptr at gmail.com
Sun Jul 14 18:46:02 CEST 2019
> On Jul 14, 2019, at 12:40 PM, Michael Van Canneyt <michael at freepascal.org> wrote:
>
> Maybe there is no need for a move operator ? I have not seen any argument
> that makes the need for this operator crystal clear.
>
> When I read your proposal, my first thought was: "solution looking for a problem."
Look at my bug report for some examples. The problem is if you implement the copy operator it MUST be called for all assignments and this results in double, triple etc… copies of the underlying data even though a simple move would be sufficient. It’s an efficiency thing and it should be improved.
Regards,
Ryan Joseph
More information about the fpc-devel
mailing list