]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Provide even more specializations of ProductType in non-C++11 mode. 604/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 25 Feb 2015 14:22:38 +0000 (08:22 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 25 Feb 2015 14:22:38 +0000 (08:22 -0600)
include/deal.II/base/template_constraints.h

index fd4abf7109335da965d2abe0ec02c640a7eb0d0d..d2b0cbc04a43d1bfbfa8aa09599c0b39d7c69d2d 100644 (file)
@@ -412,6 +412,31 @@ struct ProductType<long double,double>
   typedef long double type;
 };
 
+template <>
+struct ProductType<double,int>
+{
+  typedef double type;
+};
+
+template <>
+struct ProductType<int,double>
+{
+  typedef double type;
+};
+
+template <>
+struct ProductType<float,int>
+{
+  typedef float type;
+};
+
+template <>
+struct ProductType<int,float>
+{
+  typedef float 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.