File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -362,9 +362,20 @@ private:
362
362
363
363
public:
364
364
RNTupleCollectionView (const RNTupleCollectionView &other) = delete ;
365
- RNTupleCollectionView (RNTupleCollectionView &&other) = default ;
366
365
RNTupleCollectionView &operator =(const RNTupleCollectionView &other) = delete ;
367
- RNTupleCollectionView &operator =(RNTupleCollectionView &&other) = default ;
366
+ RNTupleCollectionView (RNTupleCollectionView &&other)
367
+ : fSource (other.fSource ), fField (std::move(other.fField )), fValue (fField .CreateValue())
368
+ {
369
+ }
370
+ RNTupleCollectionView &operator =(RNTupleCollectionView &&other)
371
+ {
372
+ if (this == &other)
373
+ return *this ;
374
+ std::swap (fSource , other.fSource );
375
+ std::swap (fField , other.fField );
376
+ fValue = fField .CreateValue ();
377
+ return *this ;
378
+ }
368
379
~RNTupleCollectionView () = default ;
369
380
370
381
ROOT::RNTupleLocalRange GetCollectionRange (ROOT::NTupleSize_t globalIndex)
You can’t perform that action at this time.
0 commit comments