mirror of https://git.suyu.dev/suyu/suyu
virtual_buffer: Add compile-time type-safety guarantees with VirtualBuffer
VirtualBuffer makes use of VirtualAlloc (on Windows) and mmap() (on other platforms). Neither of these ensure that non-trivial objects are properly constructed in the allocated memory. To prevent potential undefined behavior occurring due to that, we can add a static assert to loudly complain about cases where that is done.merge-requests/60/head
parent
b3c8997829
commit
0ca91ced2d
Loading…
Reference in New Issue