]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Bugfix: Add more typetraits to ProductType for non C++11
authorMatthias Maier <tamiko@43-1.org>
Mon, 7 Sep 2015 01:03:36 +0000 (20:03 -0500)
committerMatthias Maier <tamiko@43-1.org>
Mon, 7 Sep 2015 18:36:23 +0000 (13:36 -0500)
include/deal.II/base/template_constraints.h

index 5123f89618bc8cc3457216308eeb79a22471cdef..28e1f0cb95acb78306fa89157a007691e41eb6b2 100644 (file)
@@ -436,6 +436,30 @@ struct ProductType<int,float>
   typedef float type;
 };
 
+template <>
+struct ProductType<double, unsigned int>
+{
+  typedef double type;
+};
+
+template <>
+struct ProductType<unsigned int, double>
+{
+  typedef double type;
+};
+
+template <>
+struct ProductType<float,unsigned int>
+{
+  typedef float type;
+};
+
+template <>
+struct ProductType<unsigned 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.