From: Daniel Arndt Date: Tue, 27 Jun 2023 12:43:05 +0000 (-0400) Subject: Fix compiling with clang-16 X-Git-Tag: v9.5.0-rc1~7^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15502%2Fhead;p=dealii.git Fix compiling with clang-16 --- diff --git a/include/deal.II/distributed/tria_base.h b/include/deal.II/distributed/tria_base.h index 53d776d21f..6e9f74734f 100644 --- a/include/deal.II/distributed/tria_base.h +++ b/include/deal.II/distributed/tria_base.h @@ -76,6 +76,7 @@ namespace parallel * classes derived from the current one it actually is). */ template + DEAL_II_CXX20_REQUIRES((concepts::is_valid_dim_spacedim)) class TriangulationBase : public dealii::Triangulation { public: diff --git a/include/deal.II/grid/tria_accessor.h b/include/deal.II/grid/tria_accessor.h index df630f1da3..7cd996b8d7 100644 --- a/include/deal.II/grid/tria_accessor.h +++ b/include/deal.II/grid/tria_accessor.h @@ -51,6 +51,7 @@ class TriaActiveIterator; namespace parallel { template + DEAL_II_CXX20_REQUIRES((concepts::is_valid_dim_spacedim)) class TriangulationBase; } diff --git a/source/distributed/fully_distributed_tria.cc b/source/distributed/fully_distributed_tria.cc index a903a8358b..06fe3ce08f 100644 --- a/source/distributed/fully_distributed_tria.cc +++ b/source/distributed/fully_distributed_tria.cc @@ -749,8 +749,8 @@ namespace parallel template - void - Triangulation::update_number_cache() + DEAL_II_CXX20_REQUIRES((concepts::is_valid_dim_spacedim)) + void Triangulation::update_number_cache() { dealii::parallel::TriangulationBase::update_number_cache();