From 84b734a4df84afdc8702872f00dd89244815623e Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Sun, 10 Jun 2012 15:28:29 +0000 Subject: [PATCH] Commit patch from Stephan Kassemeyer sent to ML This patch aims to solve unaligned operation assert happens in Eigen library. This is short-term solution which in fact shall be reverted as soon as real solution would be added to Ceres. Meanwhile this should be acceptable to have for a while. --- .../libmv/third_party/ceres/include/ceres/internal/fixed_array.h | 1 + 1 file changed, 1 insertion(+) diff --git a/extern/libmv/third_party/ceres/include/ceres/internal/fixed_array.h b/extern/libmv/third_party/ceres/include/ceres/internal/fixed_array.h index 30cc5fc4a6c..84617c4fa06 100644 --- a/extern/libmv/third_party/ceres/include/ceres/internal/fixed_array.h +++ b/extern/libmv/third_party/ceres/include/ceres/internal/fixed_array.h @@ -136,6 +136,7 @@ class FixedArray { // and T must be the same, otherwise callers' assumptions about use // of this code will be broken. struct InnerContainer { + EIGEN_MAKE_ALIGNED_OPERATOR_NEW T element; };