mixin: use auto to please the linter

This commit is contained in:
Michele Caini
2024-10-03 08:20:27 +02:00
parent 79e1a9a3d9
commit 83ebbea352

View File

@@ -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) {