summaryrefslogtreecommitdiffhomepage
path: root/entity
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-16 12:24:19 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-16 13:44:15 +0200
commit5e9a9fef6edb636b7e6babb743541a18f25bd67f (patch)
tree0ffef80b2781498a80a8ddcf6d20c9cede749239 /entity
parentd2932dbdcf1ee0e646be90d9ad631ced171e012b (diff)
use Corrade::Utility::move
Diffstat (limited to 'entity')
-rw-r--r--entity/metadata.hpp9
1 files changed, 5 insertions, 4 deletions
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 <concepts>
#include <type_traits>
+#include <concepts>
+#include <utility>
#include <limits>
#include <utility>
#include <tuple>
@@ -216,7 +217,7 @@ struct Entity final {
struct field final : entity_field<Obj, Type, R, W, Ts...>
{
constexpr field(StringView field_name, R r, W w, Ts&&... ts) noexcept :
- entity_field<Obj, Type, R, W, Ts...>{field_name, r, w, std::forward<Ts>(ts)...}
+ entity_field<Obj, Type, R, W, Ts...>{field_name, r, w, Utility::forward<Ts>(ts)...}
{}
};
@@ -230,7 +231,7 @@ constexpr void visit_tuple(F&& fun, Tuple&& tuple)
{
using Size = std::tuple_size<std::decay_t<Tuple>>;
if constexpr(Size() > 0)
- detail::visit_tuple<F, Tuple, 0>(std::forward<F>(fun), std::forward<Tuple>(tuple));
+ detail::visit_tuple<F, Tuple, 0>(Utility::forward<F>(fun), Utility::forward<Tuple>(tuple));
}
template<typename F, typename Tuple>
@@ -238,7 +239,7 @@ constexpr bool find_in_tuple(F&& fun, Tuple&& tuple)
{
using Size = std::tuple_size<std::decay_t<Tuple>>;
if constexpr(Size() > 0)
- return detail::find_in_tuple<F, Tuple, 0>(std::forward<F>(fun), std::forward<Tuple>(tuple));
+ return detail::find_in_tuple<F, Tuple, 0>(Utility::forward<F>(fun), Utility::forward<Tuple>(tuple));
else
return false;
}