From: Wolfgang Bangerth Date: Sat, 25 Feb 2023 21:47:59 +0000 (-0700) Subject: Add a 'requires' clause to class Point. X-Git-Tag: v9.5.0-rc1~513^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a1de1b10003c08ed0a9f1fd77ae6766544aa134;p=dealii.git Add a 'requires' clause to class Point. --- diff --git a/include/deal.II/base/point.h b/include/deal.II/base/point.h index 6269e789a0..6787d0dbb4 100644 --- a/include/deal.II/base/point.h +++ b/include/deal.II/base/point.h @@ -105,6 +105,7 @@ DEAL_II_NAMESPACE_OPEN * @ingroup geomprimitives */ template +DEAL_II_CXX20_REQUIRES(dim >= 0) class Point : public Tensor<1, dim, Number> { public: diff --git a/include/deal.II/base/tensor.h b/include/deal.II/base/tensor.h index eefd25c2fb..944f08e50a 100644 --- a/include/deal.II/base/tensor.h +++ b/include/deal.II/base/tensor.h @@ -38,8 +38,11 @@ DEAL_II_NAMESPACE_OPEN #ifndef DOXYGEN template class ArrayView; + template +DEAL_II_CXX20_REQUIRES(dim >= 0) class Point; + template class Tensor; template diff --git a/include/deal.II/base/utilities.h b/include/deal.II/base/utilities.h index 237ed6afca..df2eb7c0e8 100644 --- a/include/deal.II/base/utilities.h +++ b/include/deal.II/base/utilities.h @@ -48,6 +48,7 @@ DEAL_II_NAMESPACE_OPEN // forward declare Point #ifndef DOXYGEN template +DEAL_II_CXX20_REQUIRES(dim >= 0) class Point; #endif diff --git a/include/deal.II/numerics/vector_tools_point_gradient.h b/include/deal.II/numerics/vector_tools_point_gradient.h index 76489a74e4..3c0bd57146 100644 --- a/include/deal.II/numerics/vector_tools_point_gradient.h +++ b/include/deal.II/numerics/vector_tools_point_gradient.h @@ -30,8 +30,11 @@ template class Function; template class Mapping; + template +DEAL_II_CXX20_REQUIRES(dim >= 0) class Point; + template class Tensor; template diff --git a/include/deal.II/numerics/vector_tools_point_value.h b/include/deal.II/numerics/vector_tools_point_value.h index 514588d26c..728dda7211 100644 --- a/include/deal.II/numerics/vector_tools_point_value.h +++ b/include/deal.II/numerics/vector_tools_point_value.h @@ -27,8 +27,11 @@ template class Function; template class Mapping; + template +DEAL_II_CXX20_REQUIRES(dim >= 0) class Point; + template class Vector; namespace hp