From 5db374dd83a08bc176b2735463b4119306bb94cd Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 20 Nov 2022 05:38:54 +0100 Subject: entity: use auto --- entity/metadata.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'entity') diff --git a/entity/metadata.hpp b/entity/metadata.hpp index 0014f63c..b373a927 100644 --- a/entity/metadata.hpp +++ b/entity/metadata.hpp @@ -52,8 +52,6 @@ constexpr CORRADE_ALWAYS_INLINE bool find_in_tuple(F&& fun, Tuple&& tuple) template struct decay_tuple_; template struct decay_tuple_> { using type = std::tuple...>; }; template using decay_tuple = typename decay_tuple_::type; -template struct accessors_for_ { using type = decay_tuple::accessors())>>; }; -template using accessors_for = typename accessors_for_::type; template struct find_reader; @@ -274,8 +272,8 @@ class entity_metadata final { template static consteval auto erased_helper(const std::tuple& tuple); public: static constexpr StringView class_name = name_of; - static constexpr std::size_t size = std::tuple_size_v>; - static constexpr entities::detail::accessors_for accessors = entities::entity_accessors::accessors(); + static constexpr auto accessors = entities::entity_accessors::accessors(); + static constexpr std::size_t size = std::tuple_size_v>; static constexpr auto erased_accessors = erased_helper(accessors); }; -- cgit v1.2.3