meta: redefined constructors where it matters (close #404)

This commit is contained in:
Michele Caini
2020-02-01 00:59:23 +01:00
parent ce9def4a56
commit c5b8577d94
2 changed files with 12 additions and 3 deletions

View File

@@ -362,7 +362,7 @@ public:
}
private:
entt::internal::meta_prop_node **curr{nullptr};
entt::internal::meta_prop_node **curr;
};

View File

@@ -327,7 +327,14 @@ class meta_any {
public:
/*! @brief Default constructor. */
meta_any() ENTT_NOEXCEPT = default;
meta_any() ENTT_NOEXCEPT
: storage{},
instance{},
node{},
destroy_fn{},
copy_fn{},
steal_fn{}
{}
/**
* @brief Constructs a meta any by directly initializing the new object.
@@ -616,7 +623,9 @@ private:
*/
struct meta_handle {
/*! @brief Default constructor. */
meta_handle() = default;
meta_handle()
: any{}
{}
/**
* @brief Creates an alias for the actual object.