From: Matthias Maier Date: Thu, 19 Mar 2020 23:37:27 +0000 (-0500) Subject: Revert "Bugfix: Allow compilation in C++98 mode" X-Git-Tag: v9.2.0-rc1~398^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7520cfc5ae6e0b55b5042d279764e16d386ff303;p=dealii.git Revert "Bugfix: Allow compilation in C++98 mode" This reverts commit f61b1485f9d54066349239c83361db231f13c42e. --- diff --git a/include/deal.II/base/tensor.h b/include/deal.II/base/tensor.h index 553d7fcf25..a45d3ff217 100644 --- a/include/deal.II/base/tensor.h +++ b/include/deal.II/base/tensor.h @@ -58,18 +58,6 @@ namespace Differentiation } // namespace Differentiation #endif -#ifndef DOXYGEN -// Overload invalid tensor types of negative rank that come up during -// overload resolution of operator* and related contraction variants. -template -class Tensor<-2, dim, Number> -{}; - -template -class Tensor<-1, dim, Number> -{}; -#endif /* DOXYGEN */ - /** * This class is a specialized version of the Tensor @@ -2010,7 +1998,8 @@ template + typename OtherNumber, + typename = typename std::enable_if= 1 && rank_2 >= 1>::type> DEAL_II_CONSTEXPR inline DEAL_II_ALWAYS_INLINE typename Tensor