]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix compilation by putting back std::move() 17220/head
authorMatthias Maier <tamiko@43-1.org>
Sun, 7 Jul 2024 03:48:22 +0000 (22:48 -0500)
committerMatthias Maier <tamiko@43-1.org>
Sun, 7 Jul 2024 03:50:32 +0000 (22:50 -0500)
source/differentiation/sd/symengine_number_types.cc

index 2e02a91425806d69898046460d2cac67e1dae536..1a1a4a0d0afa52f8dc74d02af972abd56d923bf9 100644 (file)
@@ -102,8 +102,9 @@ namespace Differentiation
       piecewise_function.emplace_back(expression_otherwise.get_RCP(),
                                       SE::boolTrue);
 
-      // Initialize
-      expression = SE::piecewise(piecewise_function);
+      // Initialize. Note that we need to use a std::move() here for
+      // compatibility with older compilers.
+      expression = SE::piecewise(std::move(piecewise_function)); // NOLINT
     }
 
 

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.