any: debug-only check to detect nasty bugs in the client code, if any

This commit is contained in:
Michele Caini
2022-10-18 10:53:45 +02:00
parent d478b5bc6a
commit 26f85050c1

View File

@@ -351,6 +351,8 @@ public:
vtable(operation::destroy, *this, nullptr);
}
// unnecessary but it helps to detect nasty bugs
ENTT_ASSERT(!(instance = nullptr), "");
info = &type_id<void>();
vtable = nullptr;
mode = policy::owner;