From b290bfb063d5985a8952c11a31ea467d1fee0e8a Mon Sep 17 00:00:00 2001 From: lisyarus Date: Sat, 22 Jun 2024 01:15:48 +0300 Subject: [PATCH] Fix vecr::any unnecessarily moving objects --- libs/vecr/include/psemek/vecr/any.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/vecr/include/psemek/vecr/any.hpp b/libs/vecr/include/psemek/vecr/any.hpp index 0adf9473..239f8ec6 100644 --- a/libs/vecr/include/psemek/vecr/any.hpp +++ b/libs/vecr/include/psemek/vecr/any.hpp @@ -66,7 +66,7 @@ namespace psemek::vecr template any & operator = (Shape && shape) { - impl_ = std::make_shared>>(std::move(shape)); + impl_ = std::make_shared>>(std::forward(shape)); return *this; }