From 6b514c3e28886202372a59655e1d4deeffee645d Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Tue, 5 Nov 2024 12:17:32 +0100 Subject: [PATCH] meta_any: internal change to avoid using data() if not needed --- src/entt/meta/meta.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entt/meta/meta.hpp b/src/entt/meta/meta.hpp index d02c94799..0c1c96eff 100644 --- a/src/entt/meta/meta.hpp +++ b/src/entt/meta/meta.hpp @@ -173,7 +173,7 @@ class meta_any { if constexpr(std::is_function_v::element_type>) { static_cast(other)->emplace(*static_cast(self.data())); } else if constexpr(!std::is_void_v::element_type>>) { - using in_place_type = decltype(adl_meta_pointer_like::dereference(*static_cast(self.data()))); + using in_place_type = decltype(adl_meta_pointer_like::dereference(std::declval())); if constexpr(std::is_constructible_v) { if(const auto &pointer_like = *static_cast(self.data()); pointer_like) {