From 86eb41f1cb016916d0813da851ec39a244ff6d8f Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Thu, 7 Nov 2019 14:34:06 +0000 Subject: SparseRef: Fixed alignment warning on ARM GCC --- Eigen/src/Core/util/Meta.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Eigen/src/Core/util/Meta.h') diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h index fe9550d71..2153f2c0d 100755 --- a/Eigen/src/Core/util/Meta.h +++ b/Eigen/src/Core/util/Meta.h @@ -612,6 +612,16 @@ template struct scalar_product_traits // typedef typename scalar_product_traits::type, typename remove_all::type>::ReturnType type; // }; +/** \internal Obtains a POD type suitable to use as storage for an object of a size + * of at most Len bytes, aligned as specified by \c Align. + */ +template +struct aligned_storage { + struct type { + EIGEN_ALIGN_TO_BOUNDARY(Align) unsigned char data[Len]; + }; +}; + } // end namespace internal namespace numext { -- cgit v1.2.3