|
|
@@ -48,11 +48,6 @@ void listener(std::size_t &counter, Registry &, typename Registry::entity_type)
|
|
|
++counter;
|
|
|
}
|
|
|
|
|
|
-template<typename Type>
|
|
|
-struct entt::storage_type<Type, test::entity, std::allocator<Type>, std::enable_if_t<!std::is_same_v<Type, test::entity>>> {
|
|
|
- using type = entt::basic_sigh_mixin<entt::basic_storage<Type, test::entity>, test::basic_custom_registry<test::entity>>;
|
|
|
-};
|
|
|
-
|
|
|
template<typename Type>
|
|
|
struct SighMixin: testing::Test {
|
|
|
using type = Type;
|
|
|
@@ -433,7 +428,7 @@ TYPED_TEST(SighMixin, Swap) {
|
|
|
|
|
|
TEST(SighMixin, AutoSignal) {
|
|
|
entt::registry registry;
|
|
|
- auto const entity = registry.create();
|
|
|
+ const auto entity = registry.create();
|
|
|
|
|
|
bool created{};
|
|
|
bool updated{};
|
|
|
@@ -488,7 +483,7 @@ ENTT_DEBUG_TYPED_TEST(SighMixinDeathTest, Registry) {
|
|
|
|
|
|
TYPED_TEST(SighMixin, CustomRegistry) {
|
|
|
using value_type = typename TestFixture::type;
|
|
|
- using registry_type = test::basic_custom_registry<test::entity>;
|
|
|
+ using registry_type = test::custom_registry<test::entity>;
|
|
|
|
|
|
registry_type registry;
|
|
|
entt::basic_sigh_mixin<entt::basic_storage<value_type, test::entity>, registry_type> pool;
|
|
|
@@ -520,7 +515,7 @@ TYPED_TEST(SighMixin, CustomRegistry) {
|
|
|
|
|
|
ENTT_DEBUG_TYPED_TEST(SighMixinDeathTest, CustomRegistry) {
|
|
|
using value_type = typename TestFixture::type;
|
|
|
- using registry_type = test::basic_custom_registry<test::entity>;
|
|
|
+ using registry_type = test::custom_registry<test::entity>;
|
|
|
entt::basic_sigh_mixin<entt::basic_storage<value_type, test::entity>, registry_type> pool;
|
|
|
ASSERT_DEATH([[maybe_unused]] auto ®istry = pool.registry(), "");
|
|
|
ASSERT_DEATH([[maybe_unused]] const auto ®istry = std::as_const(pool).registry(), "");
|