Skip to content

Commit

Permalink
test: add mention of storage initialization workaround (ref skypjack#827
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Qix- committed Apr 27, 2022
1 parent e5172a9 commit 2839227
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/example/entity_copy.cpp
Expand Up @@ -46,6 +46,16 @@ TEST(Example, DifferentRegistryTypes) {
entt::basic_registry<entt::entity> registry{};
entt::basic_registry<my_entity> other{};

/*
TODO These are currently needed to ensure that the source and
target registries have the proper storage initialized
prior to copying, as this isn't done automatically
when emplacing storages (as is done below).
There is an open issue about this, and these two
lines should be removed when a fix is properly landed.
https://github.com/skypjack/entt/issues/827
*/
static_cast<void>(registry.storage<double>());
static_cast<void>(other.storage<int>());

Expand Down

0 comments on commit 2839227

Please sign in to comment.