Skip to content

Commit f5515bc

Browse files
committed
Fix compilation error in block allocator when object type has a non-trivial destructor
1 parent 543bd01 commit f5515bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/hexi/allocators/block_allocator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class block_allocator {
169169
--new_active_count;
170170
#endif
171171
t->~_ty();
172-
delete block;
172+
operator delete(block);
173173
} else {
174174
#ifdef HEXI_DEBUG_ALLOCATORS
175175
--storage_active_count;

single_include/hexi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3472,7 +3472,7 @@ class block_allocator {
34723472
--new_active_count;
34733473
#endif
34743474
t->~_ty();
3475-
delete block;
3475+
operator delete(block);
34763476
} else {
34773477
#ifdef HEXI_DEBUG_ALLOCATORS
34783478
--storage_active_count;

0 commit comments

Comments
 (0)