From: Timo Heister Date: Mon, 12 Oct 2020 13:14:55 +0000 (-0400) Subject: move out-of class X-Git-Tag: v9.3.0-rc1~1013^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11031%2Fhead;p=dealii.git move out-of class --- diff --git a/include/deal.II/base/tensor.h b/include/deal.II/base/tensor.h index e13fcac55d..4cddefe90f 100644 --- a/include/deal.II/base/tensor.h +++ b/include/deal.II/base/tensor.h @@ -494,11 +494,7 @@ public: * @note This function can also be used in CUDA device code. */ constexpr DEAL_II_ALWAYS_INLINE DEAL_II_CUDA_HOST_DEV - Tensor() - // We would like to use =default, but this causes compile errors with some - // MSVC versions and internal compiler errors with -O1 in gcc 5.4. - : values{} - {} + Tensor(); /** * A constructor where the data is copied from a C-style array. @@ -1163,6 +1159,17 @@ constexpr DEAL_II_ALWAYS_INLINE DEAL_II_CUDA_HOST_DEV } + +template +constexpr DEAL_II_ALWAYS_INLINE DEAL_II_CUDA_HOST_DEV + Tensor::Tensor() + // We would like to use =default, but this causes compile errors with some + // MSVC versions and internal compiler errors with -O1 in gcc 5.4. + : values{} +{} + + + template constexpr DEAL_II_ALWAYS_INLINE DEAL_II_CUDA_HOST_DEV Tensor::Tensor(const array_type &initializer)