From: Daniel Arndt Date: Tue, 9 Jul 2019 01:48:45 +0000 (-0400) Subject: Always test the layout of the VectorizedArray class X-Git-Tag: v9.2.0-rc1~1401^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7c6fda969d71dcb119cdd8ff325712fe559b96b;p=dealii.git Always test the layout of the VectorizedArray class --- diff --git a/source/base/vectorization.cc b/source/base/vectorization.cc index ebd3c66961..5d544e15d8 100644 --- a/source/base/vectorization.cc +++ b/source/base/vectorization.cc @@ -20,6 +20,7 @@ DEAL_II_NAMESPACE_OPEN #if DEAL_II_COMPILER_VECTORIZATION_LEVEL >= 1 && !defined(DEAL_II_MSVC) const unsigned int VectorizedArray::n_array_elements; const unsigned int VectorizedArray::n_array_elements; +#endif // VectorizedArray must be a POD (plain old data) type to make sure it // can use maximum level of compiler optimization. @@ -33,6 +34,5 @@ static_assert(std::is_standard_layout>::value && static_assert(std::is_standard_layout>::value && std::is_trivial>::value, "VectorizedArray must be a POD type"); -#endif DEAL_II_NAMESPACE_CLOSE