]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add a 'requires' clause to class Point.
authorWolfgang Bangerth <bangerth@colostate.edu>
Sat, 25 Feb 2023 21:47:59 +0000 (14:47 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 2 Mar 2023 10:26:28 +0000 (03:26 -0700)
include/deal.II/base/point.h
include/deal.II/base/tensor.h
include/deal.II/base/utilities.h
include/deal.II/numerics/vector_tools_point_gradient.h
include/deal.II/numerics/vector_tools_point_value.h

index 6269e789a04915c917b5b64cf586b436cf8bff90..6787d0dbb42c6aeafc54fb51a755352ffa66548f 100644 (file)
@@ -105,6 +105,7 @@ DEAL_II_NAMESPACE_OPEN
  * @ingroup geomprimitives
  */
 template <int dim, typename Number = double>
+DEAL_II_CXX20_REQUIRES(dim >= 0)
 class Point : public Tensor<1, dim, Number>
 {
 public:
index eefd25c2fb0de3b7c10cd20764147b28b015928d..944f08e50ac47914a8f017fdc05124c373cf21e5 100644 (file)
@@ -38,8 +38,11 @@ DEAL_II_NAMESPACE_OPEN
 #ifndef DOXYGEN
 template <typename ElementType, typename MemorySpace>
 class ArrayView;
+
 template <int dim, typename Number>
+DEAL_II_CXX20_REQUIRES(dim >= 0)
 class Point;
+
 template <int rank_, int dim, typename Number = double>
 class Tensor;
 template <typename Number>
index 237ed6afcabc8a821d5f4395553b805a46020b71..df2eb7c0e8dd427756f15fc9705f22b94d35c6f7 100644 (file)
@@ -48,6 +48,7 @@ DEAL_II_NAMESPACE_OPEN
 // forward declare Point
 #ifndef DOXYGEN
 template <int dim, typename Number>
+DEAL_II_CXX20_REQUIRES(dim >= 0)
 class Point;
 #endif
 
index 76489a74e40bcf6e59d3b11d596dc8085f941d56..3c0bd57146695d9e134755b06dae868da8124060 100644 (file)
@@ -30,8 +30,11 @@ template <int dim, typename Number>
 class Function;
 template <int dim, int spacedim>
 class Mapping;
+
 template <int dim, typename Number>
+DEAL_II_CXX20_REQUIRES(dim >= 0)
 class Point;
+
 template <int rank_, int dim, typename Number>
 class Tensor;
 template <typename Number>
index 514588d26caff9c301c8a7f50443a36cba6027e9..728dda721125c88c85d1e1442d3af45de93ef072 100644 (file)
@@ -27,8 +27,11 @@ template <int dim, typename Number>
 class Function;
 template <int dim, int spacedim>
 class Mapping;
+
 template <int dim, typename Number>
+DEAL_II_CXX20_REQUIRES(dim >= 0)
 class Point;
+
 template <typename Number>
 class Vector;
 namespace hp

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.