diff --git a/ConflictSet.cpp b/ConflictSet.cpp index e476e26..a467365 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -299,7 +299,7 @@ struct BoundedFreeListAllocator { #if SHOW_MEMORY --liveAllocations; #endif - p->~T(); + static_assert(std::is_trivially_destructible_v); if (freeListSize == kMaxFreeListSize) { return free(p); }