From c7ff2ea3f4806bddb1494351b8c1dcd2a22fd594 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Thu, 16 Jan 2025 07:46:56 -0800 Subject: [PATCH] Proper constraint for alloctype(T) : delete --- BeefLibs/corlib/src/Allocator.bf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BeefLibs/corlib/src/Allocator.bf b/BeefLibs/corlib/src/Allocator.bf index 20fe04a7..90f2dfda 100644 --- a/BeefLibs/corlib/src/Allocator.bf +++ b/BeefLibs/corlib/src/Allocator.bf @@ -97,7 +97,7 @@ namespace System } } - struct AllocWrapper where T : new, delete + struct AllocWrapper where T : new where alloctype(T) : delete { alloctype(T) mVal; public alloctype(T) Val