diff --git a/src/entt/meta/meta.hpp b/src/entt/meta/meta.hpp index 38fb1b8ed..4dd740542 100644 --- a/src/entt/meta/meta.hpp +++ b/src/entt/meta/meta.hpp @@ -695,7 +695,7 @@ struct meta_handle { */ template, meta_handle>>> meta_handle(Type &value) - : meta_handle{locator::value_or(), value} {} + : any{std::in_place_type, value} {} /** * @brief Context aware copy constructor.