SparseRef: Fixed alignment warning on ARM GCC

This commit is contained in:
Joel Holdsworth
2019-11-07 14:34:06 +00:00
parent 743c925286
commit 86eb41f1cb
2 changed files with 17 additions and 7 deletions

View File

@@ -612,6 +612,16 @@ template<typename T, typename U> struct scalar_product_traits
// typedef typename scalar_product_traits<typename remove_all<ArgType0>::type, typename remove_all<ArgType1>::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<unsigned Len, unsigned Align>
struct aligned_storage {
struct type {
EIGEN_ALIGN_TO_BOUNDARY(Align) unsigned char data[Len];
};
};
} // end namespace internal
namespace numext {