]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Change function signature to use a template argument
authorJean-Paul Pelteret <jppelteret@gmail.com>
Sat, 27 Apr 2019 17:02:44 +0000 (19:02 +0200)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Sun, 28 Apr 2019 15:22:06 +0000 (17:22 +0200)
include/deal.II/differentiation/sd/symengine_scalar_operations.h

index 586e87714744314a02feebb1ffcbe07c64ab97f5..9a68ea1ecc981de4978a1782b024be99d02baa36 100644 (file)
@@ -287,9 +287,9 @@ namespace Differentiation
                   const SE::RCP<const SE::Basic> &>::value &&
                 std::is_constructible<ExpressionType, ValueType>::value>::type>
     void
-    add_to_substitution_map(types::substitution_map &     substitution_map,
-                            const types::symbol_vector &  symbols,
-                            const std::vector<ValueType> &values);
+    add_to_substitution_map(types::substitution_map &          substitution_map,
+                            const std::vector<ExpressionType> &symbols,
+                            const std::vector<ValueType> &     values);
 
     /**
      * A convenience function for adding multiple entries to the
@@ -559,14 +559,15 @@ namespace Differentiation
         static_cast<SE_RCP_Basic>(ExpressionType(value)));
     }
 
+
     template <bool ignore_invalid_symbols,
               typename ExpressionType,
               typename ValueType,
               typename>
     void
-    add_to_substitution_map(types::substitution_map &     substitution_map,
-                            const types::symbol_vector &  symbols,
-                            const std::vector<ValueType> &values)
+    add_to_substitution_map(types::substitution_map &          substitution_map,
+                            const std::vector<ExpressionType> &symbols,
+                            const std::vector<ValueType> &     values)
     {
       Assert(symbols.size() == values.size(),
              ExcMessage(

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.