From 3127e1a4792f377246c1a0811b5e36712bf342e1 Mon Sep 17 00:00:00 2001 From: Max Kahnt <max.kahnt@fu-berlin.de> Date: Sat, 30 Sep 2017 15:12:38 +0200 Subject: [PATCH] Compile-time expression is now in trait utilities. --- dune/matrix-vector/algorithm.hh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/dune/matrix-vector/algorithm.hh b/dune/matrix-vector/algorithm.hh index 5a1c710..3fb2453 100644 --- a/dune/matrix-vector/algorithm.hh +++ b/dune/matrix-vector/algorithm.hh @@ -3,20 +3,12 @@ #ifndef DUNE_MATRIX_VECTOR_ALGORITHM_HH #define DUNE_MATRIX_VECTOR_ALGORITHM_HH -#include <type_traits> - #include <dune/common/hybridutilities.hh> -#include <dune/common/typetraits.hh> -#include <dune/common/std/type_traits.hh> +#include <dune/matrix-vector/traitutilities.hh> namespace Dune { namespace MatrixVector { -template<class T> -constexpr auto isTupleOrDerived() { - return Std::bool_constant<IsTupleOrDerived<std::decay_t<T>>::value>(); -} - //! \brief Hybrid for loop over sparse range (static/tuple-like candidate) template <class Range, class F, std::enable_if_t<isTupleOrDerived<Range>(), int> = 0> void sparseRangeFor(Range&& range, F&& f) { -- GitLab