From 983c4aed3d497bac47f6366af3cbf68a4d690e0b Mon Sep 17 00:00:00 2001 From: Reza Rastak Date: Wed, 8 May 2019 10:46:05 -0700 Subject: [PATCH] Adding inline in header file Following #8037 , the `inline` keyword should be added. --- include/deal.II/base/tensor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); -- 2.39.5