From 484a12b8d6e9f738b331645e29ad15c5089da317 Mon Sep 17 00:00:00 2001 From: Dimitri Baron Date: Thu, 11 Jul 2024 14:17:46 +0200 Subject: [PATCH] #413 Code smells fix Signed-off-by: Dimitri Baron --- sources/Common/DYNSimulationResult.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sources/Common/DYNSimulationResult.h b/sources/Common/DYNSimulationResult.h index af556009..1cd69098 100644 --- a/sources/Common/DYNSimulationResult.h +++ b/sources/Common/DYNSimulationResult.h @@ -54,6 +54,19 @@ class SimulationResult { */ SimulationResult& operator=(const SimulationResult& result); + /** + * @brief move constructor + * @param result : result to move + */ + SimulationResult(SimulationResult&& result) = default; + + /** + * @brief move operator + * @param result result to move + * @return new instance of simulationResult + */ + SimulationResult& operator=(SimulationResult&& result) = default; + /** * @brief set the id of the scenario * @param id id of the scenario