Merged in fix/testPose2-clang-avx2 (pull request #374)

Close Issue #414
Fix testPose2 with clang + avx2
release/4.3a0
Chris Beall 2019-01-24 03:25:54 +00:00 committed by Frank Dellaert
commit 3389bb2944
1 changed files with 3 additions and 4 deletions

View File

@ -295,17 +295,16 @@ private:
ar & BOOST_SERIALIZATION_NVP(r_);
}
#ifdef GTSAM_TYPEDEF_POINTS_TO_VECTORS
public:
// Make sure Pose2 is aligned if it contains a Vector2
// Align for Point2, which is either derived from, or is typedef, of Vector2
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
#endif
}; // Pose2
/** specialization for pose2 wedge function (generic template in Lie.h) */
template <>
inline Matrix wedge<Pose2>(const Vector& xi) {
return Pose2::wedge(xi(0),xi(1),xi(2));
// NOTE(chris): Need eval() as workaround for Apple clang + avx2.
return Matrix(Pose2::wedge(xi(0),xi(1),xi(2))).eval();
}
/**