forked from weaselab/conflict-set
Replace destructor call with static assert
This commit is contained in:
+1
-1
@@ -299,7 +299,7 @@ struct BoundedFreeListAllocator {
|
|||||||
#if SHOW_MEMORY
|
#if SHOW_MEMORY
|
||||||
--liveAllocations;
|
--liveAllocations;
|
||||||
#endif
|
#endif
|
||||||
p->~T();
|
static_assert(std::is_trivially_destructible_v<T>);
|
||||||
if (freeListSize == kMaxFreeListSize) {
|
if (freeListSize == kMaxFreeListSize) {
|
||||||
return free(p);
|
return free(p);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user