From 83ebbea35220b5b0b54b3b4035d1f2b3f880dfab Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Thu, 3 Oct 2024 08:20:27 +0200 Subject: [PATCH] mixin: use auto to please the linter --- src/entt/entity/mixin.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entt/entity/mixin.hpp b/src/entt/entity/mixin.hpp index 5ce068c76..c07345ab2 100644 --- a/src/entt/entity/mixin.hpp +++ b/src/entt/entity/mixin.hpp @@ -39,7 +39,7 @@ struct has_on_destroy auto *any_to_owner(any &value) noexcept { using base_type = basic_registry; - base_type *reg = any_cast(&value); + auto *reg = any_cast(&value); if constexpr(!std::is_same_v) { if(!reg) {