Skip to content
Snippets Groups Projects
Commit 3977497a authored by Jan Trávníček's avatar Jan Trávníček
Browse files

fix clang complaint

parent 37a9231b
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,7 @@ ParamType retrieveValue ( const std::shared_ptr < OperationAbstraction > & param ...@@ -30,7 +30,7 @@ ParamType retrieveValue ( const std::shared_ptr < OperationAbstraction > & param
if ( ! interface->isConst ( ) && ( move || interface->isAutoMove ( ) ) ) if ( ! interface->isConst ( ) && ( move || interface->isAutoMove ( ) ) )
return std::move ( interface->getValue ( ) ); return std::move ( interface->getValue ( ) );
else { else {
Type && res = interface->getValue ( ); const Type & res = interface->getValue ( );
return res; return res;
} }
} else if constexpr ( std::is_copy_constructible_v < Type > && ! std::is_move_constructible_v < Type > ) { } else if constexpr ( std::is_copy_constructible_v < Type > && ! std::is_move_constructible_v < Type > ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment