Provide assign operator for TIter #7641
Conversation
Let assign TIterator* directly without need of creating temporary TIter object in between. Solves root-project#7633
Forces to correctly implement it in all derived classes, otherwise TIter iter2 = iter1 does not work for such cases
|
Starting build on |
|
Build failed on ROOT-performance-centos8-multicore/default. Warnings:
|
|
Starting build on |
|
Build failed on ROOT-fedora31/noimt. Warnings:
|
|
Build failed on ROOT-ubuntu16/nortcxxmod. Warnings:
|
Ensure that created TIterator instance kept inside TIter and not copied
|
Starting build on |
| if (fIterator) | ||
| delete fIterator; |
There was a problem hiding this comment.
| if (fIterator) | |
| delete fIterator; | |
| SafeDelete(fIterator); |
to use the same syntax the other deletion in this class.
There was a problem hiding this comment.
Here SafeDelete not necessary - fIterator is overwritten already with the next line
Let assign TIterator* directly without need of creating
temporary TIter object in between.
Solves #7633