From: Jean-Paul Pelteret Date: Wed, 8 May 2019 08:26:52 +0000 (+0200) Subject: Fix use of contexpr in Tensor class for older compilers X-Git-Tag: v9.1.0-rc1~116^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8037%2Fhead;p=dealii.git Fix use of contexpr in Tensor class for older compilers --- diff --git a/include/deal.II/base/tensor.h b/include/deal.II/base/tensor.h index 666509a6c7..47d27ca6b7 100644 --- a/include/deal.II/base/tensor.h +++ b/include/deal.II/base/tensor.h @@ -930,7 +930,7 @@ namespace internal namespace ComplexWorkaround { template - constexpr DEAL_II_CUDA_HOST_DEV void + DEAL_II_CUDA_HOST_DEV void multiply_assign_scalar(Number &val, const OtherNumber &s) { val *= s; @@ -938,7 +938,7 @@ namespace internal #ifdef __CUDA_ARCH__ template - constexpr DEAL_II_CUDA_HOST_DEV void + DEAL_II_CUDA_HOST_DEV void multiply_assign_scalar(std::complex &, const OtherNumber &) { printf("This function is not implemented for std::complex!\n");