Skip to content

Commit

Permalink
avoid initializing meta_context::value when definition of meta_type_n…
Browse files Browse the repository at this point in the history
…ode is unavailable
  • Loading branch information
atorstling-mojang committed Sep 12, 2024
1 parent 156bc47 commit 05d4d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entt/meta/context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace internal {
struct meta_type_node;

struct meta_context {
dense_map<id_type, meta_type_node, identity> value{};
dense_map<id_type, meta_type_node, identity> value;

[[nodiscard]] inline static meta_context &from(meta_ctx &ctx);
[[nodiscard]] inline static const meta_context &from(const meta_ctx &ctx);
Expand Down

0 comments on commit 05d4d5d

Please sign in to comment.