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
|
||||
--liveAllocations;
|
||||
#endif
|
||||
p->~T();
|
||||
static_assert(std::is_trivially_destructible_v<T>);
|
||||
if (freeListSize == kMaxFreeListSize) {
|
||||
return free(p);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user