use forward instead of move

This commit is contained in:
Sébastien Loriot 2021-09-07 12:37:29 +02:00
parent 64a602ba7c
commit 2e07200e5f
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ const D& choose_parameter(const internal_np::Param_not_found&, const D& d)
template <typename D>
D choose_parameter(const internal_np::Param_not_found&, D&& d)
{
return std::move(d);
return std::forward<D>(d);
}
template <typename T, typename D>