]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Undefault Tensor constructor for MSVC
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 22 Nov 2019 19:10:28 +0000 (14:10 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Fri, 22 Nov 2019 19:27:18 +0000 (14:27 -0500)
include/deal.II/base/tensor.h

index 1a2c710c30a9c52fe378067e5ec7b2a26097bdf8..edb95bace8ff9e87135719c1d1739be46fb9c800 100644 (file)
@@ -464,7 +464,13 @@ public:
    * @note This function can also be used in CUDA device code.
    */
   constexpr DEAL_II_ALWAYS_INLINE DEAL_II_CUDA_HOST_DEV
-                                  Tensor() = default;
+                                  Tensor()
+#ifdef DEAL_II_MSVC
+    : values{}
+  {}
+#else
+    = default;
+#endif
 
   /**
    * Constructor, where the data is copied from a C-style array.

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.