]> https://gitweb.dealii.org/ - dealii.git/commitdiff
base/mpi.h: mark a template variable to have "const inline" linkage.
authorMatthias Maier <tamiko@43-1.org>
Thu, 15 Feb 2024 22:03:22 +0000 (16:03 -0600)
committerMatthias Maier <tamiko@43-1.org>
Fri, 16 Feb 2024 01:30:15 +0000 (19:30 -0600)
include/deal.II/base/mpi.h

index b77fd3e7c8ce5444f66b9ecc13c07b11dd38d775..1400ec4b3a9c130be7aaf5240eb624e535bc903b 100644 (file)
@@ -1728,7 +1728,7 @@ namespace Utilities
      * not satisfied.
      */
     template <typename T>
-    const MPI_Datatype
+    inline const MPI_Datatype
       mpi_type_id_for_type = internal::MPIDataTypes::mpi_type_id(
         static_cast<std::remove_cv_t<std::remove_reference_t<T>> *>(nullptr));
 #endif

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.