diff --git a/alib2abstraction/src/common/AbstractionHelpers.hpp b/alib2abstraction/src/common/AbstractionHelpers.hpp index e5140dee827717d13d2a441137a8b3dd6830462c..6e92991398b8b2b89d74d832f9f4cba8f35f9dff 100644 --- a/alib2abstraction/src/common/AbstractionHelpers.hpp +++ b/alib2abstraction/src/common/AbstractionHelpers.hpp @@ -30,7 +30,7 @@ ParamType retrieveValue ( const std::shared_ptr < OperationAbstraction > & param if ( ! interface->isConst ( ) && ( move || interface->isAutoMove ( ) ) ) return std::move ( interface->getValue ( ) ); else { - Type && res = interface->getValue ( ); + const Type & res = interface->getValue ( ); return res; } } else if constexpr ( std::is_copy_constructible_v < Type > && ! std::is_move_constructible_v < Type > ) {