From: Peter Munch Date: Thu, 22 Oct 2020 09:14:29 +0000 (+0200) Subject: FEEvaluation: Simplify check for block vector X-Git-Tag: v9.3.0-rc1~985^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11079%2Fhead;p=dealii.git FEEvaluation: Simplify check for block vector --- diff --git a/include/deal.II/matrix_free/fe_evaluation.h b/include/deal.II/matrix_free/fe_evaluation.h index 0e86aa2209..97abf46ad5 100644 --- a/include/deal.II/matrix_free/fe_evaluation.h +++ b/include/deal.II/matrix_free/fe_evaluation.h @@ -7516,7 +7516,7 @@ FEEvaluation< namespace internal { /** - * Implementation for vectors that have the begin() methods. + * Implementation for standard vectors (that have the begin() methods). */ template ::value && - (std::is_same().begin()), - const double *>::value || - std::is_same().begin()), - double *>::value || - std::is_same().begin()), - const float *>::value || - std::is_same().begin()), - float *>::value), - VectorType>::type * = nullptr> + typename std::enable_if::value, + VectorType>::type * = nullptr> decltype(std::declval().begin()) get_beginning(VectorType &vec) { @@ -7730,17 +7721,8 @@ namespace internal template ::value || - !(std::is_same().begin()), - const double *>::value || - std::is_same().begin()), - double *>::value || - std::is_same().begin()), - const float *>::value || - std::is_same().begin()), - float *>::value), - VectorType>::type * = nullptr> + typename std::enable_if::value, + VectorType>::type * = nullptr> typename VectorType::value_type * get_beginning(VectorType &) {