From 0531bf8bad27def89af92e15a37f63cb6f59472f Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Mon, 12 Oct 2020 09:14:55 -0400 Subject: [PATCH] move out-of class --- include/deal.II/base/tensor.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) 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) -- 2.39.5