]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid ambiguous unrolled_to_component_indices call 9062/head
authorDaniel Arndt <arndtd@ornl.gov>
Tue, 19 Nov 2019 23:47:36 +0000 (18:47 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Tue, 19 Nov 2019 23:50:20 +0000 (18:50 -0500)
include/deal.II/base/symmetric_tensor.h

index c22df7bf42b785e9237ed7bca155f25c9d3e232f..de83b3e9a554a0c97545780c7f92898fbd67b3c3 100644 (file)
@@ -2401,9 +2401,10 @@ namespace internal
     // this function is for tensors of a rank not already handled
     // above
     template <int dim, int rank_>
-    DEAL_II_CONSTEXPR inline TableIndices<rank_>
-    unrolled_to_component_indices(const unsigned int i,
-                                  const std::integral_constant<int, rank_> &)
+    DEAL_II_CONSTEXPR inline
+      typename std::enable_if<rank_ != 2, TableIndices<rank_>>::type
+      unrolled_to_component_indices(const unsigned int i,
+                                    const std::integral_constant<int, rank_> &)
     {
       (void)i;
       Assert(

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.