Remove redundant static assert

Closes #14
This commit is contained in:
2024-03-27 12:41:45 -07:00
parent a4d1f91670
commit c15c2e7b44

View File

@@ -558,7 +558,6 @@ template <class T> struct BoundedFreeListAllocator {
}
void release(T *p) {
static_assert(std::is_trivially_destructible_v<T>);
if (freeListBytes >= kFreeListMaxMemory) {
removeNode(p);
return safe_free(p, sizeof(T) + p->partialKeyCapacity);