]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove decltype(auto) (cxx14)
authorLuca Heltai <luca.heltai@sissa.it>
Fri, 27 Oct 2017 13:51:17 +0000 (15:51 +0200)
committerLuca Heltai <luca.heltai@sissa.it>
Sat, 28 Oct 2017 17:57:07 +0000 (19:57 +0200)
include/deal.II/base/patterns.h

index 8d12d0b5f007ac128648ee0a3964621cafca5b66..5e5de71143137e57880fdda0445c4a5cc19a3d13 100644 (file)
@@ -1925,9 +1925,10 @@ namespace Patterns
 
       template<std::size_t... I>
       static
-      decltype(auto) to_string_internal_1(const T &t,
-                                          const Patterns::Tuple &pattern,
-                                          std_cxx14::index_sequence<I...>)
+      std::array<std::string, std::tuple_size<T>::value>
+      to_string_internal_1(const T &t,
+                           const Patterns::Tuple &pattern,
+                           std_cxx14::index_sequence<I...>)
       {
         std::array<std::string, std::tuple_size<T>::value> a
         = {{
@@ -1939,8 +1940,9 @@ namespace Patterns
       }
 
       static
-      decltype(auto) to_string_internal_2(const T &t,
-                                          const Patterns::Tuple &pattern)
+      std::array<std::string, std::tuple_size<T>::value>
+      to_string_internal_2(const T &t,
+                           const Patterns::Tuple &pattern)
       {
         return Convert<T>::to_string_internal_1(t, pattern,
                                                 std_cxx14::make_index_sequence<std::tuple_size<T>::value> {});

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.