From: Wolfgang Bangerth Date: Wed, 15 Mar 2023 18:02:52 +0000 (-0600) Subject: Mark some 'constexpr' as 'inline'. X-Git-Tag: v9.5.0-rc1~425^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14882%2Fhead;p=dealii.git Mark some 'constexpr' as 'inline'. --- diff --git a/include/deal.II/base/template_constraints.h b/include/deal.II/base/template_constraints.h index 7d635356aa..0553bf6cd1 100644 --- a/include/deal.II/base/template_constraints.h +++ b/include/deal.II/base/template_constraints.h @@ -907,34 +907,34 @@ namespace parallel namespace concepts { +#if defined(DEAL_II_HAVE_CXX20) || defined(DOXYGEN) namespace internal { template - constexpr bool is_triangulation_or_dof_handler = false; + inline constexpr bool is_triangulation_or_dof_handler = false; template - constexpr bool + inline constexpr bool is_triangulation_or_dof_handler> = true; template - constexpr bool is_triangulation_or_dof_handler< + inline constexpr bool is_triangulation_or_dof_handler< parallel::distributed::Triangulation> = true; template - constexpr bool is_triangulation_or_dof_handler< + inline constexpr bool is_triangulation_or_dof_handler< parallel::shared::Triangulation> = true; template - constexpr bool is_triangulation_or_dof_handler< + inline constexpr bool is_triangulation_or_dof_handler< parallel::fullydistributed::Triangulation> = true; template - constexpr bool is_triangulation_or_dof_handler> = - true; + inline constexpr bool + is_triangulation_or_dof_handler> = true; } // namespace internal -#if defined(DEAL_II_HAVE_CXX20) || defined(DOXYGEN) /** * A concept that is used to check whether the `MeshType` template * type used in many functions in namespace GridTools and