From: Daniel Arndt Date: Wed, 15 Mar 2023 17:25:48 +0000 (-0400) Subject: Fix concepts support for TpetraWrappers::Vector X-Git-Tag: v9.5.0-rc1~473^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4ac5f11f8ee2a64d55e6ced88b0ac3d86571c31;p=dealii.git Fix concepts support for TpetraWrappers::Vector --- diff --git a/include/deal.II/base/template_constraints.h b/include/deal.II/base/template_constraints.h index b1dab26d85..ff8e3b8249 100644 --- a/include/deal.II/base/template_constraints.h +++ b/include/deal.II/base/template_constraints.h @@ -741,6 +741,7 @@ namespace LinearAlgebra # ifdef DEAL_II_TRILINOS_WITH_TPETRA namespace TpetraWrappers { + template class Vector; } # endif @@ -803,40 +804,40 @@ namespace concepts # ifdef DEAL_II_WITH_PETSC template <> - constexpr bool is_dealii_vector_type = true; + inline constexpr bool is_dealii_vector_type = + true; template <> - constexpr bool is_dealii_vector_type = - true; + inline constexpr bool + is_dealii_vector_type = true; template <> - constexpr bool is_dealii_vector_type = - true; + inline constexpr bool + is_dealii_vector_type = true; template <> - constexpr bool + inline constexpr bool is_dealii_vector_type = true; # endif # ifdef DEAL_II_WITH_TRILINOS template <> - constexpr bool + inline constexpr bool is_dealii_vector_type = true; template <> - constexpr bool + inline constexpr bool is_dealii_vector_type = true; template <> - constexpr bool + inline constexpr bool is_dealii_vector_type = true; # ifdef DEAL_II_TRILINOS_WITH_TPETRA - template <> - constexpr bool - is_dealii_vector_type = - true; + template + constexpr bool is_dealii_vector_type< + dealii::LinearAlgebra::TpetraWrappers::Vector> = true; # endif # endif } // namespace internal