]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Provide more specializations of ProductType for the non-C++11 case.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 25 Feb 2015 13:53:53 +0000 (07:53 -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 80a7e1992b5982b777df7988cb8cb5ed7dc892c6..fd4abf7109335da965d2abe0ec02c640a7eb0d0d 100644 (file)
@@ -388,6 +388,30 @@ struct ProductType<double,bool>
   typedef double type;
 };
 
+template <>
+struct ProductType<double,float>
+{
+  typedef double type;
+};
+
+template <>
+struct ProductType<float,double>
+{
+  typedef double type;
+};
+
+template <>
+struct ProductType<double,long double>
+{
+  typedef long double type;
+};
+
+template <>
+struct ProductType<long double,double>
+{
+  typedef long double type;
+};
+
 #endif
 
 

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.