]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Declare remaining specialization of is_dealii_vector_type as inline constexpr 14897/head
authorDaniel Arndt <arndtd@ornl.gov>
Wed, 15 Mar 2023 17:39:05 +0000 (13:39 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Wed, 15 Mar 2023 17:39:55 +0000 (13:39 -0400)
include/deal.II/base/template_constraints.h

index ff8e3b8249cee747db833342c041a706efb1cd12..208a99877ec0ddfddf37a9511834c9d62e313a34 100644 (file)
@@ -778,28 +778,29 @@ namespace concepts
      * predicate is `true`.
      */
     template <typename T>
-    constexpr bool is_dealii_vector_type = false;
+    inline constexpr bool is_dealii_vector_type = false;
 
     template <typename Number>
-    constexpr bool is_dealii_vector_type<dealii::Vector<Number>> = true;
+    inline constexpr bool is_dealii_vector_type<dealii::Vector<Number>> = true;
 
     template <typename Number>
-    constexpr bool is_dealii_vector_type<dealii::BlockVector<Number>> = true;
+    inline constexpr bool is_dealii_vector_type<dealii::BlockVector<Number>> =
+      true;
 
     template <typename Number>
-    constexpr bool
+    inline constexpr bool
       is_dealii_vector_type<dealii::LinearAlgebra::Vector<Number>> = true;
 
     template <typename Number>
-    constexpr bool
+    inline constexpr bool
       is_dealii_vector_type<dealii::LinearAlgebra::BlockVector<Number>> = true;
 
     template <typename Number, typename MemorySpace>
-    constexpr bool is_dealii_vector_type<
+    inline constexpr bool is_dealii_vector_type<
       dealii::LinearAlgebra::distributed::Vector<Number, MemorySpace>> = true;
 
     template <typename Number>
-    constexpr bool is_dealii_vector_type<
+    inline constexpr bool is_dealii_vector_type<
       dealii::LinearAlgebra::distributed::BlockVector<Number>> = true;
 
 #  ifdef DEAL_II_WITH_PETSC
@@ -836,7 +837,7 @@ namespace concepts
 
 #    ifdef DEAL_II_TRILINOS_WITH_TPETRA
     template <typename Number>
-    constexpr bool is_dealii_vector_type<
+    inline constexpr bool is_dealii_vector_type<
       dealii::LinearAlgebra::TpetraWrappers::Vector<Number>> = true;
 #    endif
 #  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.