From: Wolfgang Bangerth Date: Fri, 23 Apr 2021 15:49:32 +0000 (-0600) Subject: Fix a static_assert to actually make sense. X-Git-Tag: v9.3.0-rc1~186^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ff653a4c4cabf33676aed849ee8242022e3fa04;p=dealii.git Fix a static_assert to actually make sense. More specifically, there is a specialization Tensor<0,dim,Number> so we should reallly never get here with rank==0. --- diff --git a/include/deal.II/base/tensor.h b/include/deal.II/base/tensor.h index dfbbd3c510..f5894dc944 100644 --- a/include/deal.II/base/tensor.h +++ b/include/deal.II/base/tensor.h @@ -449,7 +449,7 @@ template class Tensor { public: - static_assert(rank_ >= 0, + static_assert(rank_ >= 1, "Tensors must have a rank greater than or equal to one."); static_assert(dim >= 0, "Tensors must have a dimension greater than or equal to one.");