actually this message is probably more effective at making people read the web page...

This commit is contained in:
Benoit Jacob 2008-12-07 16:38:45 +00:00
parent 08e6b7ad80
commit 6700f07fb0

View File

@ -41,12 +41,7 @@ template <typename T, int Size, bool Align> struct ei_aligned_array
ei_aligned_array()
{
ei_assert(reinterpret_cast<unsigned int>(array)%16 == 0
&& "An array that should have been aligned was allocated at a non-aligned location! "
"Basically, if a struct Foo has a member that's a fixed-size vectorizable Eigen object (like "
"a Eigen::Vector2d) and you dynamically allocate objects of struct Foo, then you need to "
"let struct Foo have an aligned operator new, which you can do like this: "
"struct Foo : Eigen::WithAlignedOperatorNew {... "
"See this page for details: http://eigen.tuxfamily.org/api/UnalignedArrayAssert.html");
&& "this assertion is explained here: http://eigen.tuxfamily.org/api/UnalignedArrayAssert.html **** READ THIS WEB PAGE !!! ****");
}
};