[libcxx-commits] [libcxx] [libc++] Provide sized deallocation declarations even when the compiler doesn't support sized deallocation (PR #125577)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Feb 3 15:41:30 PST 2025
philnik777 wrote:
> @philnik777 I was unsuccessful trying to get one on Godbolt. The compiler simply ignores the user-provided sized overload when resolving a `delete` expression if sized allocations are not available -- but it's very possible I'm not trying the right combination of the compiler / flags / etc.
Yes, that's the point of the flag. You have to explicitly use the sized deallocation overload with this patch, but I don't see when you'd want to be able to manually call the function but not tell the compiler that it exists.
https://github.com/llvm/llvm-project/pull/125577
More information about the libcxx-commits
mailing list