Skip to content

Commit 6019dd2

Browse files
authored
Merge pull request #5061 from herrwusel/tutorial-pointtype
Fix position of `EIGEN_ALIGN` in tutorial
2 parents c509b2b + 57629d2 commit 6019dd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/tutorials/content/adding_custom_ptype.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -830,12 +830,12 @@ data (SSE padded), together with a test float.
830830
#include <pcl/point_cloud.h>
831831
#include <pcl/io/pcd_io.h>
832832
833-
struct MyPointType
833+
struct EIGEN_ALIGN16 MyPointType // enforce SSE padding for correct memory alignment
834834
{
835835
PCL_ADD_POINT4D; // preferred way of adding a XYZ+padding
836836
float test;
837837
PCL_MAKE_ALIGNED_OPERATOR_NEW // make sure our new allocators are aligned
838-
} EIGEN_ALIGN16; // enforce SSE padding for correct memory alignment
838+
};
839839
840840
POINT_CLOUD_REGISTER_POINT_STRUCT (MyPointType, // here we assume a XYZ + "test" (as fields)
841841
(float, x, x)

0 commit comments

Comments
 (0)