#ifndef ENTT_COMMON_MIXIN_HPP #define ENTT_COMMON_MIXIN_HPP #include #include namespace test { struct assure_loop {}; template class assure_loop_mixin: public Type { using underlying_type = Type; using registry_type = entt::basic_registry; void bind_any(entt::any value) noexcept override { if(auto *owner = entt::any_cast(&value); owner) { owner->template storage(); } } public: using allocator_type = typename underlying_type::allocator_type; using entity_type = typename underlying_type::entity_type; using Type::Type; }; } // namespace test template struct entt::storage_type { using type = test::assure_loop_mixin>; }; #endif