From 911cedfa9169e8e9a971ea0efb4bc8e120079894 Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Tue, 26 Feb 2019 17:12:21 +0100 Subject: [PATCH] consistently for non-void in internal::has_local_element --- include/deal.II/matrix_free/fe_evaluation.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/deal.II/matrix_free/fe_evaluation.h b/include/deal.II/matrix_free/fe_evaluation.h index 77e6975cff..ac87eea988 100644 --- a/include/deal.II/matrix_free/fe_evaluation.h +++ b/include/deal.II/matrix_free/fe_evaluation.h @@ -3420,12 +3420,11 @@ namespace internal detect(const U &); public: - // finally here we check if our detector has return type same as + // finally here we check if our detector has non-void return type // T::value_type. This will happen if compiler can use second detector, // otherwise SFINAE let it work with the more general first one that is void static constexpr bool value = - std::is_same()))>::value; + !std::is_same()))>::value; }; @@ -3452,7 +3451,7 @@ namespace internal // same as above to check - // T::const_iterator T::begin() const + // ... T::begin() const template struct has_begin { -- 2.39.5