]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add another template specialization for ProductType.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 25 Feb 2015 13:49:02 +0000 (07:49 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 25 Feb 2015 14:06:31 +0000 (08:06 -0600)
include/deal.II/base/template_constraints.h

index a8f08c7436cabcf3cad8b38f06e1f50133fd2bb0..80a7e1992b5982b777df7988cb8cb5ed7dc892c6 100644 (file)
@@ -394,6 +394,12 @@ struct ProductType<double,bool>
 // Annoyingly, there is no std::complex<T>::operator*(U) for scalars U
 // other than T. Consequently, even with C++11, we need the following
 // specializations:
+template <typename T>
+struct ProductType<std::complex<T>,std::complex<T> >
+{
+  typedef std::complex<T> type;
+};
+
 template <typename T, typename U>
 struct ProductType<std::complex<T>,std::complex<U> >
 {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.