Config-dependent aligned new operator

release/4.3a0
Frank Dellaert 2018-11-02 23:31:28 -04:00
parent d7ca186269
commit 2d0ba69fa4
2 changed files with 10 additions and 2 deletions

View File

@ -278,6 +278,12 @@ private:
ar & BOOST_SERIALIZATION_NVP(t_);
ar & BOOST_SERIALIZATION_NVP(r_);
}
#ifdef GTSAM_TYPEDEF_POINTS_TO_VECTORS
public:
// Make sure Pose2 is aligned if it contains a Vector2
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
#endif
}; // Pose2
/** specialization for pose2 wedge function (generic template in Lie.h) */

View File

@ -508,9 +508,11 @@ namespace gtsam {
#endif
}
#ifdef GTSAM_USE_QUATERNIONS
// only align if quaternion, Matrix3 has no alignment requirements
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
#endif
};
/**