From cbdad4864252b2d907608c4dfbf106df21864553 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 25 Feb 2015 07:56:30 -0600 Subject: [PATCH] Explicitly provide ProductType for Tensor<1,dim> in non-C++11 mode. --- include/deal.II/base/tensor_base.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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. * -- 2.39.5