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