Allocator-aware @safe reference counting is still not possible

jmh530 john.michael.hall at gmail.com
Mon Jan 30 13:17:01 UTC 2023


On Monday, 30 January 2023 at 12:26:09 UTC, Timon Gehr wrote:
> [snip]
>
> https://en.cppreference.com/w/c/memory/free
>
> "The behavior is undefined if the value of ptr does not equal a 
> value returned earlier by malloc(), calloc(), realloc(), or 
> aligned_alloc()."
>
> Undefined behavior is not memory safe.

Thanks.


More information about the Digitalmars-d mailing list