Skip to content

Commit cd7d594

Browse files
committed
Fixed move construtor/assignment - pinned memory is now also moved.
1 parent bf4cdb0 commit cd7d594

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/data_structures/Mesh/PixelData.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,9 @@ public :
482482
z_num = aObj.z_num;
483483
mesh = std::move(aObj.mesh);
484484
meshMemory = std::move(aObj.meshMemory);
485+
#ifdef APR_USE_CUDA
486+
meshMemoryPinned = std::move(aObj.meshMemoryPinned);
487+
#endif
485488
}
486489

487490
/**
@@ -494,6 +497,9 @@ public :
494497
z_num = aObj.z_num;
495498
mesh = std::move(aObj.mesh);
496499
meshMemory = std::move(aObj.meshMemory);
500+
#ifdef APR_USE_CUDA
501+
meshMemoryPinned = std::move(aObj.meshMemoryPinned);
502+
#endif
497503
return *this;
498504
}
499505

0 commit comments

Comments
 (0)