Fix vecr::any unnecessarily moving objects
This commit is contained in:
parent
bced20ddc6
commit
b290bfb063
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ namespace psemek::vecr
|
|||
template <typename Shape>
|
||||
any & operator = (Shape && shape)
|
||||
{
|
||||
impl_ = std::make_shared<detail::any_impl<std::decay_t<Shape>>>(std::move(shape));
|
||||
impl_ = std::make_shared<detail::any_impl<std::decay_t<Shape>>>(std::forward<Shape>(shape));
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue