Use aligned_allocator for static allocation

release/4.3a0
Fan Jiang 2019-12-03 13:51:37 -05:00
parent 520bb970f3
commit 522dbc00f6
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ static SO4::VectorN2 vec4(const Matrix4& Q) {
}
// so<4> generators
static std::vector<Matrix4> G4(
static std::vector<Matrix4, Eigen::aligned_allocator<Matrix4> > G4(
{SO4::Hat(Vector6::Unit(0)), SO4::Hat(Vector6::Unit(1)),
SO4::Hat(Vector6::Unit(2)), SO4::Hat(Vector6::Unit(3)),
SO4::Hat(Vector6::Unit(4)), SO4::Hat(Vector6::Unit(5))});