Skip to content
Snippets Groups Projects
Commit 30cbe040 authored by Jö Fahlke's avatar Jö Fahlke
Browse files

[!813] Use std::move(yArray) to not implicitly copy array.

Merge branch 'fix/use-std-move-to-not-copy-array-implicitly' into 'master'

See merge request [!813]

  [!813]: Nonecore/dune-common/merge_requests/813
parents 3d195670 e0585e1d
No related branches found
No related tags found
1 merge request!813Use std::move(yArray) to not implicitly copy array.
Pipeline #27182 passed
......@@ -270,7 +270,7 @@ namespace Dune
getFixedTensor( xi, x, i );
setFixedTensor( f( xi ), y, i );
}
return yArray;
return std::move(yArray);
}
else
throw pybind11::value_error( "Tensor has too many dimensions" );
......
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