From: Martin Kronbichler Date: Tue, 20 May 2025 14:24:21 +0000 (+0200) Subject: Attempt to fix warning X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F18472%2Fhead;p=dealii.git Attempt to fix warning --- diff --git a/source/dofs/dof_accessor_set.cc b/source/dofs/dof_accessor_set.cc index a10660f793..5349db7098 100644 --- a/source/dofs/dof_accessor_set.cc +++ b/source/dofs/dof_accessor_set.cc @@ -103,23 +103,6 @@ namespace internal } #endif - namespace - { - // Test whether a vector is a deal.II vector - template - constexpr bool is_dealii_vector = - std::is_same_v> || - std::is_same_v> || - std::is_same_v> || - std::is_same_v>; - } // namespace - /** * Helper function that sets the values on a cell, but also checks if the @@ -140,7 +123,15 @@ namespace internal if constexpr (running_in_debug_mode()) { - if (perform_check && is_dealii_vector) + using VectorNumber = typename OutputVector::value_type; + constexpr bool is_dealii_vector = + std::is_same_v> || + std::is_same_v> || + std::is_same_v> || + std::is_same_v>; + if (perform_check && is_dealii_vector) { const bool old_ghost_state = values.has_ghost_elements(); set_ghost_state(values, true);