Browse Source

mixin: use auto to please the linter

Michele Caini 1 year ago
parent
commit
83ebbea352
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/entt/entity/mixin.hpp

+ 1 - 1
src/entt/entity/mixin.hpp

@@ -39,7 +39,7 @@ struct has_on_destroy<Type, Registry, std::void_t<decltype(Type::on_destroy(std:
 template<typename Type>
 auto *any_to_owner(any &value) noexcept {
     using base_type = basic_registry<typename Type::entity_type, typename Type::allocator_type>;
-    base_type *reg = any_cast<base_type>(&value);
+    auto *reg = any_cast<base_type>(&value);
 
     if constexpr(!std::is_same_v<Type, base_type>) {
         if(!reg) {