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