Skip to content

Commit a57f495

Browse files
committed
fixed extracting pointer type from allocator
1 parent 0767028 commit a57f495

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/entt/entity/polymorphic.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ class poly_type {
295295
static_assert(is_poly_type_v<DerivedType>);
296296
static_assert(type_list_contains_v<poly_parent_types_t<DerivedType>, BaseType> || std::is_same_v<DerivedType, BaseType>);
297297
static_assert(std::is_pointer_v<DerivedType> == std::is_pointer_v<BaseType>);
298-
static_assert(std::is_same_v<typename std::allocator_traits<allocator_type>::template rebind_alloc<Entity>::pointer, typename StorageType::base_type::allocator_type::pointer>,
298+
static_assert(std::is_same_v<typename std::allocator_traits<allocator_type>::template rebind_traits<Entity>::pointer, typename std::allocator_traits<typename StorageType::base_type::allocator_type>::pointer>,
299299
"Allocator pointer types dont match for polymorphic types in one hierarchy. Use std::poly_type_allocator to explicitly provide allocator type for each polymorphic component type.");
300300

301301
void* (*get)(void*, Entity entity) ENTT_NOEXCEPT = +[](void* pool, const Entity entity) ENTT_NOEXCEPT -> void* {

0 commit comments

Comments
 (0)