From: Matthias Maier Date: Sun, 7 Jul 2024 03:48:22 +0000 (-0500) Subject: fix compilation by putting back std::move() X-Git-Tag: v9.6.0-rc1~124^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17220%2Fhead;p=dealii.git fix compilation by putting back std::move() --- diff --git a/source/differentiation/sd/symengine_number_types.cc b/source/differentiation/sd/symengine_number_types.cc index 2e02a91425..1a1a4a0d0a 100644 --- a/source/differentiation/sd/symengine_number_types.cc +++ b/source/differentiation/sd/symengine_number_types.cc @@ -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 }