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

index bc0aab7339580b3a20d42dfbc541976ace60c930..67a23a047a7aeed104ce74e104302dda8ecd3708 100644 (file)
@@ -1745,7 +1745,7 @@ namespace Utilities
      * not satisfied.
      */
     template <typename T>
-    const MPI_Datatype mpi_type_id_for_type =
+    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.