From 5e9a9fef6edb636b7e6babb743541a18f25bd67f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 16 Apr 2023 12:24:19 +0200 Subject: use Corrade::Utility::move --- entity/metadata.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'entity') diff --git a/entity/metadata.hpp b/entity/metadata.hpp index 2bb8d346..8ad006ac 100644 --- a/entity/metadata.hpp +++ b/entity/metadata.hpp @@ -5,8 +5,9 @@ #include "util.hpp" #include "concepts.hpp" #include "compat/defs.hpp" -#include #include +#include +#include #include #include #include @@ -216,7 +217,7 @@ struct Entity final { struct field final : entity_field { constexpr field(StringView field_name, R r, W w, Ts&&... ts) noexcept : - entity_field{field_name, r, w, std::forward(ts)...} + entity_field{field_name, r, w, Utility::forward(ts)...} {} }; @@ -230,7 +231,7 @@ constexpr void visit_tuple(F&& fun, Tuple&& tuple) { using Size = std::tuple_size>; if constexpr(Size() > 0) - detail::visit_tuple(std::forward(fun), std::forward(tuple)); + detail::visit_tuple(Utility::forward(fun), Utility::forward(tuple)); } template @@ -238,7 +239,7 @@ constexpr bool find_in_tuple(F&& fun, Tuple&& tuple) { using Size = std::tuple_size>; if constexpr(Size() > 0) - return detail::find_in_tuple(std::forward(fun), std::forward(tuple)); + return detail::find_in_tuple(Utility::forward(fun), Utility::forward(tuple)); else return false; } -- cgit v1.2.3