Fixed alignment warnings on windows by adding EIGEN_MAKE_ALIGNED_OPERATOR_NEW

release/4.3a0
Frank Dellaert 2018-10-23 23:37:36 -04:00
parent a7678698d3
commit 1c2cd7045e
6 changed files with 21 additions and 0 deletions

View File

@ -94,6 +94,9 @@ struct BearingRange
} }
friend class boost::serialization::access; friend class boost::serialization::access;
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
}; };
// Declare this to be both Testable and a Manifold // Declare this to be both Testable and a Manifold

View File

@ -156,6 +156,9 @@ public:
} }
/// @} /// @}
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
}; };
template<> struct traits<OrientedPlane3> : public internal::Manifold< template<> struct traits<OrientedPlane3> : public internal::Manifold<

View File

@ -129,6 +129,9 @@ private:
ar & BOOST_SERIALIZATION_NVP(nZ_); ar & BOOST_SERIALIZATION_NVP(nZ_);
ar & BOOST_SERIALIZATION_NVP(bRef_); ar & BOOST_SERIALIZATION_NVP(bRef_);
} }
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
}; };
/// traits /// traits
@ -213,6 +216,9 @@ private:
ar & BOOST_SERIALIZATION_NVP(nZ_); ar & BOOST_SERIALIZATION_NVP(nZ_);
ar & BOOST_SERIALIZATION_NVP(bRef_); ar & BOOST_SERIALIZATION_NVP(bRef_);
} }
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
}; };
/// traits /// traits

View File

@ -122,6 +122,9 @@ namespace gtsam {
boost::serialization::base_object<Base>(*this)); boost::serialization::base_object<Base>(*this));
ar & BOOST_SERIALIZATION_NVP(measured_); ar & BOOST_SERIALIZATION_NVP(measured_);
} }
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
}; // \class BetweenFactor }; // \class BetweenFactor
/// traits /// traits

View File

@ -103,6 +103,9 @@ private:
boost::serialization::base_object<Base>(*this)); boost::serialization::base_object<Base>(*this));
ar & BOOST_SERIALIZATION_NVP(measuredE_); ar & BOOST_SERIALIZATION_NVP(measuredE_);
} }
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
}; };
// \class EssentialMatrixConstraint // \class EssentialMatrixConstraint

View File

@ -104,6 +104,9 @@ namespace gtsam {
boost::serialization::base_object<Base>(*this)); boost::serialization::base_object<Base>(*this));
ar & BOOST_SERIALIZATION_NVP(prior_); ar & BOOST_SERIALIZATION_NVP(prior_);
} }
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
}; };
} /// namespace gtsam } /// namespace gtsam