aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-12-07 16:38:45 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-12-07 16:38:45 +0000
commit6700f07fb0ba776cc226e5fd021e4ad4d5086fb0 (patch)
treeaa3507f090fbf545496d014d776e08029b917444
parent08e6b7ad808b981a286984fcc30476c853b434fc (diff)
actually this message is probably more effective at making people read the web page...
-rw-r--r--Eigen/src/Core/util/Memory.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h
index c1dea2bb4..5e42327e4 100644
--- a/Eigen/src/Core/util/Memory.h
+++ b/Eigen/src/Core/util/Memory.h
@@ -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 !!! ****");
}
};