From 9c525c2e7f3ac253f7b677b74f83fb3fcd83fdad Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Sun, 12 Jul 2015 18:56:45 -0700 Subject: [PATCH] Default constructor now default --- gtsam/base/Manifold.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtsam/base/Manifold.h b/gtsam/base/Manifold.h index d7ea9ea4c..6746236be 100644 --- a/gtsam/base/Manifold.h +++ b/gtsam/base/Manifold.h @@ -187,8 +187,8 @@ public: typedef Eigen::Matrix TangentVector; typedef OptionalJacobian ChartJacobian; - /// Default constructor yields identity - ProductManifold():std::pair(traits::Identity(),traits::Identity()) {} + /// Default constructor needs default constructors to be defined + ProductManifold():std::pair(M1(),M2()) {} // Construct from two original manifold values ProductManifold(const M1& m1, const M2& m2):std::pair(m1,m2) {}