make_shared -> allocate_shared, for alignment
parent
d02b33af88
commit
36f5dbf9d2
|
|
@ -42,7 +42,8 @@ public:
|
||||||
template<typename T>
|
template<typename T>
|
||||||
void addExpressionFactor(const Expression<T>& h, const T& z,
|
void addExpressionFactor(const Expression<T>& h, const T& z,
|
||||||
const SharedNoiseModel& R) {
|
const SharedNoiseModel& R) {
|
||||||
push_back(boost::make_shared<ExpressionFactor<T> >(R, z, h));
|
using F = ExpressionFactor<T>;
|
||||||
|
push_back(boost::allocate_shared<F>(Eigen::aligned_allocator<F>(), R, z, h));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue