From: Wolfgang Bangerth Date: Wed, 25 Feb 2015 13:57:18 +0000 (-0600) Subject: Explicitly provide ProductType for Tensor in non-C++11 mode. X-Git-Tag: v8.3.0-rc1~415^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e971cf32cad42d59a1a2bc286ccfa3af8a7e273;p=dealii.git Explicitly provide ProductType for Tensor in non-C++11 mode. --- diff --git a/include/deal.II/base/tensor.h b/include/deal.II/base/tensor.h index f9f0232704..cabc4643fe 100644 --- a/include/deal.II/base/tensor.h +++ b/include/deal.II/base/tensor.h @@ -2011,6 +2011,23 @@ operator * (const Number factor, } +#ifndef DEAL_II_WITH_CXX11 + +template +struct ProductType > +{ + typedef Tensor::type> type; +}; + +template +struct ProductType,U> +{ + typedef Tensor::type> type; +}; + +#endif + + /** * Multiplication of a tensor of general rank with a scalar number from the * right.