diff --git a/src/entt/meta/node.hpp b/src/entt/meta/node.hpp index b5df0d3b7..015c14b8d 100644 --- a/src/entt/meta/node.hpp +++ b/src/entt/meta/node.hpp @@ -193,7 +193,12 @@ template &resolve>>}; if constexpr(std::is_default_constructible_v) { - node.default_constructor = +[](const meta_ctx &ctx_TODO) { return meta_any{std::in_place_type}; }; + node.default_constructor = +[](const meta_ctx &ctx) { + // TODO it would be great if we had value and context construction support for meta_any + meta_any elem{ctx}; + elem.emplace(); + return elem; + }; } if constexpr(std::is_arithmetic_v) {