From: Wolfgang Bangerth Date: Sun, 9 Feb 2025 22:24:03 +0000 (-0700) Subject: Do not use anonymous namespaces in header files. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F18116%2Fhead;p=dealii.git Do not use anonymous namespaces in header files. --- diff --git a/include/deal.II/base/mpi_consensus_algorithms.h b/include/deal.II/base/mpi_consensus_algorithms.h index 089f44932c..bb667765cd 100644 --- a/include/deal.II/base/mpi_consensus_algorithms.h +++ b/include/deal.II/base/mpi_consensus_algorithms.h @@ -1279,7 +1279,7 @@ namespace Utilities { namespace ConsensusAlgorithms { - namespace + namespace internal { /** * Return whether a vector of targets (MPI ranks) has only unique @@ -1373,7 +1373,7 @@ namespace Utilities std::rethrow_exception(exception); # endif } - } // namespace + } // namespace internal @@ -1450,7 +1450,7 @@ namespace Utilities &process_answer, const MPI_Comm comm) { - Assert(has_unique_elements(targets), + Assert(internal::has_unique_elements(targets), ExcMessage("The consensus algorithms expect that each process " "only sends a single message to another process, " "but the targets provided include duplicates.")); @@ -1497,7 +1497,7 @@ namespace Utilities } catch (...) { - handle_exception(std::current_exception(), comm); + internal::handle_exception(std::current_exception(), comm); } return std::vector(requesting_processes.begin(), @@ -1821,7 +1821,7 @@ namespace Utilities &process_answer, const MPI_Comm comm) { - Assert(has_unique_elements(targets), + Assert(internal::has_unique_elements(targets), ExcMessage("The consensus algorithms expect that each process " "only sends a single message to another process, " "but the targets provided include duplicates.")); @@ -1849,7 +1849,7 @@ namespace Utilities } catch (...) { - handle_exception(std::current_exception(), comm); + internal::handle_exception(std::current_exception(), comm); } return std::vector(requesting_processes.begin(),