From fcf65ace23d73f7f0204d6a2008acd353174a579 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 25 Feb 2015 07:49:02 -0600 Subject: [PATCH] Add another template specialization for ProductType. --- include/deal.II/base/template_constraints.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/deal.II/base/template_constraints.h b/include/deal.II/base/template_constraints.h index a8f08c7436..80a7e1992b 100644 --- a/include/deal.II/base/template_constraints.h +++ b/include/deal.II/base/template_constraints.h @@ -394,6 +394,12 @@ struct ProductType // Annoyingly, there is no std::complex::operator*(U) for scalars U // other than T. Consequently, even with C++11, we need the following // specializations: +template +struct ProductType,std::complex > +{ + typedef std::complex type; +}; + template struct ProductType,std::complex > { -- 2.39.5