]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make sure we don't implicitly convert from tuple to pair.
authorLuca Heltai <luca.heltai@sissa.it>
Tue, 5 May 2020 15:24:41 +0000 (17:24 +0200)
committerLuca Heltai <luca.heltai@sissa.it>
Sat, 9 May 2020 22:49:30 +0000 (00:49 +0200)
include/deal.II/base/patterns.h
tests/parameter_handler/pattern_tools_02.output

index 9541bbbf79aaceb510a1cc9e100dd2c253353ee4..a4582cd63c64b4978d7ab67abe50bedc229b12cc 100644 (file)
@@ -2255,7 +2255,7 @@ namespace Patterns
       {
         std::tuple<Key, Value> m;
         m = Convert<decltype(m)>::to_value(s, pattern);
-        return m;
+        return std::make_pair(std::get<0>(m), std::get<1>(m));
       }
     };
 
index 400718a68845c1fe327653e08a82ea78dd085424..4a1a8a9e579a9e57ee231228b49de78256602568 100644 (file)
@@ -20,9 +20,9 @@ DEAL::To value : 0, 0, 0
 DEAL::Pattern  : [List of <[Double -MAX_DOUBLE...MAX_DOUBLE (inclusive)]> of length 2...2 (inclusive)]
 DEAL::To String: 1, 2
 DEAL::To value : 1, 2
-DEAL::Pattern  : [Map of <[Integer range -2147483648...2147483647 (inclusive)]>:<[Double -MAX_DOUBLE...MAX_DOUBLE (inclusive)]> of length 1...1 (inclusive)]
-DEAL::To String: 1:2
-DEAL::To value : 1:2
+DEAL::Pattern  : [Tuple of <2> elements <[Integer range -2147483648...2147483647 (inclusive)]>, <[Double -MAX_DOUBLE...MAX_DOUBLE (inclusive)]>]
+DEAL::To String: 1 : 2
+DEAL::To value : 1 : 2
 DEAL::Pattern  : [List of <[List of <[Double -MAX_DOUBLE...MAX_DOUBLE (inclusive)]> of length 1...1 (inclusive)]> of length 1...1 (inclusive) separated by <;>]
 DEAL::To String: 0
 DEAL::To value : 0

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.