From 36f5dbf9d229f7723d885f8bb2baa034019bc1ad Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Tue, 6 Nov 2018 10:17:13 -0500 Subject: [PATCH] make_shared -> allocate_shared, for alignment --- gtsam/nonlinear/ExpressionFactorGraph.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtsam/nonlinear/ExpressionFactorGraph.h b/gtsam/nonlinear/ExpressionFactorGraph.h index 122bd429f..665f887e2 100644 --- a/gtsam/nonlinear/ExpressionFactorGraph.h +++ b/gtsam/nonlinear/ExpressionFactorGraph.h @@ -42,7 +42,8 @@ public: template void addExpressionFactor(const Expression& h, const T& z, const SharedNoiseModel& R) { - push_back(boost::make_shared >(R, z, h)); + using F = ExpressionFactor; + push_back(boost::allocate_shared(Eigen::aligned_allocator(), R, z, h)); } /// @}