From 64ea48b93bc862544d656b0962e8ccce8a54fcbe Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Sat, 6 Jul 2024 22:48:22 -0500 Subject: [PATCH] fix compilation by putting back std::move() --- source/differentiation/sd/symengine_number_types.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 } -- 2.39.5