![]() Registered Member ![]()
|
Hi,
The manual says that this type of code class Foo { Eigen::Vector2d v; }; ... Foo *foo = new Foo; needs to have the EIGEN_MAKE_ALIGNED_OPERATOR_NEW macro in the Foo class. My question is whether there a solution to this problem when we already have a constructor of Foo that takes some parameters. i.e. if our class is defined like class Foo{ Eigen::Vector2d v; foo(int x){ ... } }; and we use it like Foo * foo = new Foo(10); Is there still some macro we can use to avoid the UnalignedArrayAssert error? Thanks. EDIT: Nevermind, it seems like this does not complicate the situation - I can still address the issue using the normal macro. |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]