From f5308a69ecb6404b02ca8cae1a49711dfceb2c33 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 23 Aug 2023 18:17:21 +0200 Subject: fix non-pch build --- entity/metadata.hpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'entity') diff --git a/entity/metadata.hpp b/entity/metadata.hpp index 8ad006ac..1902091f 100644 --- a/entity/metadata.hpp +++ b/entity/metadata.hpp @@ -9,11 +9,11 @@ #include #include #include -#include #include #include #include #include +#include namespace floormat::entities { @@ -32,7 +32,7 @@ constexpr CORRADE_ALWAYS_INLINE void visit_tuple(F&& fun, Tuple&& tuple) fun(std::get(tuple)); if constexpr(N+1 < Size()) - visit_tuple(std::forward(fun), std::forward(tuple)); + visit_tuple(Corrade::Utility::forward(fun), Corrade::Utility::forward(tuple)); } template @@ -45,7 +45,7 @@ constexpr CORRADE_ALWAYS_INLINE bool find_in_tuple(F&& fun, Tuple&& tuple) if (fun(std::get(tuple))) return true; if constexpr(N+1 < Size()) - return find_in_tuple(std::forward(fun), std::forward(tuple)); + return find_in_tuple(Corrade::Utility::forward(fun), Corrade::Utility::forward(tuple)); return false; } @@ -119,7 +119,7 @@ public: static constexpr decltype(auto) read(const R& reader, const Obj& x) { return detail::read_field::read(x, reader); } static constexpr void write(const W& writer, Obj& x, Type v); constexpr decltype(auto) read(const Obj& x) const { return read(reader, x); } - constexpr void write(Obj& x, Type value) const { write(writer, x, std::move(value)); } + constexpr void write(Obj& x, Type value) const { write(writer, x, Corrade::Utility::move(value)); } static constexpr bool can_write = !std::is_same_v::writer)>; static constexpr field_status is_enabled(const Predicate & p, const Obj& x); @@ -142,7 +142,7 @@ public: template R, FieldWriter W, typename... Ts> constexpr void entity_field::write(const W& writer, Obj& x, Type v) { - static_assert(can_write); detail::write_field::write(x, writer, std::move(v)); + static_assert(can_write); detail::write_field::write(x, writer, Corrade::Utility::move(v)); } template R, FieldWriter W, typename... Ts> @@ -164,8 +164,8 @@ constexpr erased_accessor entity_field::erased() const constexpr auto writer_fn = [](void* obj, const writer_t* writer, void* value) { auto& obj_ = *reinterpret_cast(obj); const auto& writer_ = *reinterpret_cast(writer); - Type value_ = std::move(*reinterpret_cast(value)); - write(writer_, obj_, std::move(value_)); + Type value_ = Corrade::Utility::move(*reinterpret_cast(value)); + write(writer_, obj_, Corrade::Utility::move(value_)); }; constexpr auto predicate_fn = [](const void* obj, const predicate_t* predicate) { const auto& obj_ = *reinterpret_cast(obj); @@ -217,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, Utility::forward(ts)...} + entity_field{field_name, r, w, Corrade::Utility::forward(ts)...} {} }; @@ -231,7 +231,7 @@ constexpr void visit_tuple(F&& fun, Tuple&& tuple) { using Size = std::tuple_size>; if constexpr(Size() > 0) - detail::visit_tuple(Utility::forward(fun), Utility::forward(tuple)); + detail::visit_tuple(Corrade::Utility::forward(fun), Corrade::Utility::forward(tuple)); } template @@ -239,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(Utility::forward(fun), Utility::forward(tuple)); + return detail::find_in_tuple(Corrade::Utility::forward(fun), Corrade::Utility::forward(tuple)); else return false; } -- cgit v1.2.3