]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix compiling with clang-16 15502/head
authorDaniel Arndt <arndtd@ornl.gov>
Tue, 27 Jun 2023 12:43:05 +0000 (08:43 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Tue, 27 Jun 2023 12:43:54 +0000 (08:43 -0400)
include/deal.II/distributed/tria_base.h
include/deal.II/grid/tria_accessor.h
source/distributed/fully_distributed_tria.cc

index 53d776d21fe68381603658db892fa3fa7f20ab85..6e9f74734f802ec26b3bc41fd5c37b7aa7f0ab59 100644 (file)
@@ -76,6 +76,7 @@ namespace parallel
    * classes derived from the current one it actually is).
    */
   template <int dim, int spacedim = dim>
+  DEAL_II_CXX20_REQUIRES((concepts::is_valid_dim_spacedim<dim, spacedim>))
   class TriangulationBase : public dealii::Triangulation<dim, spacedim>
   {
   public:
index df630f1da331dc80c2b477c101ecda6dc602051a..7cd996b8d7c6b1a75b47cf99ba045d03ba10ed00 100644 (file)
@@ -51,6 +51,7 @@ class TriaActiveIterator;
 namespace parallel
 {
   template <int dim, int spacedim>
+  DEAL_II_CXX20_REQUIRES((concepts::is_valid_dim_spacedim<dim, spacedim>))
   class TriangulationBase;
 }
 
index a903a8358bccf7caa6d3eca5d664434697da39bd..06fe3ce08f572c732cd14cf1934346636d64a4cb 100644 (file)
@@ -749,8 +749,8 @@ namespace parallel
 
 
     template <int dim, int spacedim>
-    void
-    Triangulation<dim, spacedim>::update_number_cache()
+    DEAL_II_CXX20_REQUIRES((concepts::is_valid_dim_spacedim<dim, spacedim>))
+    void Triangulation<dim, spacedim>::update_number_cache()
     {
       dealii::parallel::TriangulationBase<dim, spacedim>::update_number_cache();
 

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.