diff --git a/gtsam/geometry/Pose3.h b/gtsam/geometry/Pose3.h index d70295f58..725a888ca 100644 --- a/gtsam/geometry/Pose3.h +++ b/gtsam/geometry/Pose3.h @@ -326,6 +326,12 @@ public: ar & BOOST_SERIALIZATION_NVP(t_); } /// @} + +#ifdef GTSAM_USE_QUATERNIONS + // Align if we are using Quaternions + public: + EIGEN_MAKE_ALIGNED_OPERATOR_NEW +#endif }; // Pose3 class