diff --git a/common/include/pcl/point_cloud.h b/common/include/pcl/point_cloud.h index 5e2cea8b8fb..271ebc223fe 100644 --- a/common/include/pcl/point_cloud.h +++ b/common/include/pcl/point_cloud.h @@ -562,6 +562,7 @@ namespace pcl inline void swap (PointCloud &rhs) { + std::swap (header, rhs.header); this->points.swap (rhs.points); std::swap (width, rhs.width); std::swap (height, rhs.height);