From: Reza Rastak Date: Wed, 8 May 2019 17:46:05 +0000 (-0700) Subject: Adding inline in header file X-Git-Tag: v9.1.0-rc1~114^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=983c4aed3d497bac47f6366af3cbf68a4d690e0b;p=dealii.git Adding inline in header file Following #8037 , the `inline` keyword should be added. --- diff --git a/include/deal.II/base/tensor.h b/include/deal.II/base/tensor.h index 47d27ca6b7..2bcca23341 100644 --- a/include/deal.II/base/tensor.h +++ b/include/deal.II/base/tensor.h @@ -930,7 +930,7 @@ namespace internal namespace ComplexWorkaround { template - DEAL_II_CUDA_HOST_DEV void + inline 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 - DEAL_II_CUDA_HOST_DEV void + inline DEAL_II_CUDA_HOST_DEV void multiply_assign_scalar(std::complex &, const OtherNumber &) { printf("This function is not implemented for std::complex!\n");