From 6700f07fb0ba776cc226e5fd021e4ad4d5086fb0 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Sun, 7 Dec 2008 16:38:45 +0000 Subject: [PATCH] actually this message is probably more effective at making people read the web page... --- Eigen/src/Core/util/Memory.h | 7 +------ 1 file changed, 1 insertion(+), 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 struct ei_aligned_array ei_aligned_array() { ei_assert(reinterpret_cast(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 !!! ****"); } };