This forum has been archived. All content is frozen. Please use KDE Discuss instead.

UnalignedArrayAssert

Tags: None
(comma "," separated)
tflynn
Registered Member
Posts
3
Karma
0

UnalignedArrayAssert

Tue Oct 14, 2014 11:14 pm
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.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]