From 049e529f665864d102f81d899bacf34dfbe3aa88 Mon Sep 17 00:00:00 2001 From: Qix Date: Thu, 28 Apr 2022 16:34:45 +0200 Subject: [PATCH] test: add mention of storage initialization workaround (ref #827) (#879) --- test/example/entity_copy.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/example/entity_copy.cpp b/test/example/entity_copy.cpp index fdbd1579f..69ad8ddc9 100644 --- a/test/example/entity_copy.cpp +++ b/test/example/entity_copy.cpp @@ -46,6 +46,16 @@ TEST(Example, DifferentRegistryTypes) { entt::basic_registry registry{}; entt::basic_registry 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(registry.storage()); static_cast(other.storage());