Skip to content

Commit 049e529

Browse files
authored
test: add mention of storage initialization workaround (ref skypjack#827) (skypjack#879)
1 parent ef6e47f commit 049e529

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/example/entity_copy.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@ TEST(Example, DifferentRegistryTypes) {
4646
entt::basic_registry<entt::entity> registry{};
4747
entt::basic_registry<my_entity> other{};
4848

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

0 commit comments

Comments
 (0)