Skip to content

Commit

Permalink
meta: rework internals to work around a (maybe) compiler issue
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Dec 10, 2024
1 parent f3f9e9a commit 42d9628
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/entt/meta/factory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ class basic_meta_factory {
basic_meta_factory(meta_ctx &area, meta_type_node node)
: ctx{&area},
parent{node.info->hash()},
bucket{parent} {
if(!node.details) {
bucket{parent},
details{node.details.get()} {
if(details == nullptr) {
node.details = std::make_shared<meta_type_descriptor>();
meta_context::from(*ctx).value[parent] = node;
details = node.details.get();
}

details = node.details.get();
meta_context::from(*ctx).value.try_emplace(parent, std::move(node));
}

private:
Expand Down Expand Up @@ -178,7 +178,7 @@ class meta_factory: private internal::basic_meta_factory {
* @param area The context into which to construct meta types.
*/
meta_factory(meta_ctx &area) noexcept
: base_type{area, internal::resolve<Type>(internal::meta_context::from(area))} {}
: internal::basic_meta_factory{area, internal::resolve<Type>(internal::meta_context::from(area))} {}

/**
* @brief Assigns a custom unique identifier to a meta type.
Expand Down

0 comments on commit 42d9628

Please sign in to comment.