From 6e0aa053512e0f444aee8e3aea29b0b16b58d626 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 27 Jun 2023 08:43:05 -0400 Subject: [PATCH] Fix compiling with clang-16 --- include/deal.II/distributed/tria_base.h | 1 + include/deal.II/grid/tria_accessor.h | 1 + source/distributed/fully_distributed_tria.cc | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) 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(); -- 2.39.5