meta: cleanup

This commit is contained in:
Michele Caini
2024-06-04 14:41:48 +02:00
parent f068b1f005
commit b3e07785fc

View File

@@ -84,17 +84,14 @@ class meta_factory {
public:
/*! @brief Default constructor. */
meta_factory() noexcept
: meta_factory{locator<meta_ctx>::value_or()} {}
meta_factory() noexcept = default;
/**
* @brief Context aware constructor.
* @param area The context into which to construct meta types.
*/
meta_factory(meta_ctx &area) noexcept
: ctx{&area},
bucket{},
info{&type_id<Type>()} {
: ctx{&area} {
auto &&elem = internal::owner(*ctx, *info);
if(!elem.details) {
@@ -444,9 +441,9 @@ public:
}
private:
meta_ctx *ctx;
dense_map<id_type, internal::meta_prop_node, identity> *bucket;
const type_info *info;
meta_ctx *ctx{&locator<meta_ctx>::value_or()};
dense_map<id_type, internal::meta_prop_node, identity> *bucket{};
const type_info *info{&type_id<Type>()};
};
/**