diff options
| author | Lioncash <mathew1800@gmail.com> | 2020-11-17 20:09:55 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2020-11-17 20:09:58 -0500 |
| commit | d02005bbe9f97bbad973d47a91acee9b3e5f8c3f (patch) | |
| tree | 4165380bb5e6bc44d901e9c93651bc2bb620ef0f /src/common/logging/backend.cpp | |
| parent | b9b02276ebd81b0579784c97006ce9d9cc18fb06 (diff) | |
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.
Diffstat (limited to 'src/common/logging/backend.cpp')
0 files changed, 0 insertions, 0 deletions
