From bec0037797170469fd7323f72d2708dc07ecb2ef Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Tue, 11 Oct 2022 12:20:25 +0200 Subject: [PATCH] meta: fully context aware meta_any --- src/entt/meta/meta.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/entt/meta/meta.hpp b/src/entt/meta/meta.hpp index 075ec2004..f187f34ca 100644 --- a/src/entt/meta/meta.hpp +++ b/src/entt/meta/meta.hpp @@ -165,8 +165,7 @@ class meta_any { case operation::deref: if constexpr(is_meta_pointer_like_v) { if constexpr(std::is_function_v::element_type>) { - // TODO - *static_cast(other) = any_cast(value); + static_cast(other)->emplace(any_cast(value)); } else if constexpr(!std::is_same_v::element_type>, void>) { using in_place_type = decltype(adl_meta_pointer_like::dereference(any_cast(value)));